diff --git a/ePA-eML-Examples/ExampleRepoTestData/transformation_protocol.txt b/ePA-eML-Examples/ExampleRepoTestData/transformation_protocol.txt new file mode 100644 index 00000000..63bf9860 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/transformation_protocol.txt @@ -0,0 +1,682 @@ +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_aut_idem/PZN-Verordnung_aut_idem_1/PZN_aut_idem_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Arbeitsunfall/PZN-Verordnung_Arbeitsunfall_1/PZN_Arbeitsunfall_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_3/WS_V3_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_1/WS_V1_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_2/WS_V2_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_4/WS_V4_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Rezeptur-parenterale_Zytostatika/Rezeptur-parenterale_Zytostatika_1/Rez_parenterale_Zytostatika_VerordnungArzt.xml + transform to valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_1/PZN_MV1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_3/PZN_MV3_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_4/PZN_MV4_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_2/PZN_MV2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_2/WS_BK_V2_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_1/WS_BK_V1_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_2/PZN_Nr2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_4/PZN_Nr4_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_7/PZN_Nr7_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_8/PZN_Nr8_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_6/PZN_Nr6_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_5/PZN_Nr5_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_3/PZN_Nr3_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_1/PZN_Nr1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff_Mehrfachverordnung/WS_MV_1/WS_MV1_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff_Mehrfachverordnung/WS_MV_2/WS_MV2_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Freitext-Verordnung/Freitext-Verordnung_1/FT_V1_VerordnungArzt.xml + transform to valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Freitext-Verordnung/Freitext-Verordnung_2/FT_V2_VerordnungArzt.xml + transform to valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Rezeptur-Verordnung/Rezeptur-Verordnung_1/Rez_Nr1_VerordnungArzt.xml + transform to valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Unfall/PZN-Verordnung_Unfall_1/PZN_Unfall_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_2/PZN_KB_V2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_1/PZN_KB_V1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung_Unfall/Wirkstoff-Verordnung_Unfall_1/WS_Unfall_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_2/PZN_Impfstoff_V2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_1/PZN_Impfstoff_V1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Noctu/PZN-Verordnung_Noctu_1/PZN_Noctu_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_aut_idem/PZN-Verordnung_aut_idem_1/PZN_aut_idem_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Arbeitsunfall/PZN-Verordnung_Arbeitsunfall_1/PZN_Arbeitsunfall_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_3/WS_V3_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_1/WS_V1_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_2/WS_V2_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_4/WS_V4_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Rezeptur-parenterale_Zytostatika/Rezeptur-parenterale_Zytostatika_1/Rez_parenterale_Zytostatika_VerordnungArzt.xml + transform to valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_1/PZN_MV1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_3/PZN_MV3_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_4/PZN_MV4_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_2/PZN_MV2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_2/WS_BK_V2_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_1/WS_BK_V1_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_2/PZN_Nr2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_4/PZN_Nr4_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_7/PZN_Nr7_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_8/PZN_Nr8_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_6/PZN_Nr6_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_5/PZN_Nr5_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_3/PZN_Nr3_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_1/PZN_Nr1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff_Mehrfachverordnung/WS_MV_1/WS_MV1_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff_Mehrfachverordnung/WS_MV_2/WS_MV2_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Freitext-Verordnung/Freitext-Verordnung_1/FT_V1_VerordnungArzt.xml + transform to valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Freitext-Verordnung/Freitext-Verordnung_2/FT_V2_VerordnungArzt.xml + transform to valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Rezeptur-Verordnung/Rezeptur-Verordnung_1/Rez_Nr1_VerordnungArzt.xml + transform to valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Unfall/PZN-Verordnung_Unfall_1/PZN_Unfall_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_2/PZN_KB_V2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_1/PZN_KB_V1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung_Unfall/Wirkstoff-Verordnung_Unfall_1/WS_Unfall_VerordnungArzt.xml + transform to valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_2/PZN_Impfstoff_V2_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_1/PZN_Impfstoff_V1_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Noctu/PZN-Verordnung_Noctu_1/PZN_Noctu_VerordnungArzt.xml + transform to valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_31.xml + transform to valid/medicationPzn/Beispiel_31_e0cb3cbc +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_39.xml + transform to valid/medicationPzn/Beispiel_39_23d155d0 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_16.xml + transform to valid/medicationIngredient/Beispiel_16_6e2b78ab +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_23.xml + transform to valid/medicationCompounding/Beispiel_23_d0ca163a +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_9.xml + transform to valid/medicationPzn/Beispiel_9_45f28601 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_10_3.xml + transform to valid/medicationPzn/Beispiel_10_3_552a0944 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_32.xml + transform to valid/medicationPzn/Beispiel_32_318de3dd +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_14.xml + transform to valid/medicationPzn/Beispiel_14_63ade791 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_58.xml + transform to valid/medicationIngredient/Beispiel_58_97f6247a +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_45.xml + transform to valid/medicationPzn/Beispiel_45_bb4ce485 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_50.xml + transform to valid/medicationCompounding/Beispiel_50_c0cfd125 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_8.xml + transform to valid/medicationPzn/Beispiel_8_0097fa46 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_7.xml + transform to valid/medicationPzn/Beispiel_7_c806b0e8 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_15.xml + transform to valid/medicationPzn/Beispiel_15_b8505bd0 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_36.xml + transform to valid/medicationPzn/Beispiel_36_143798dc +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_21_2.xml + transform to valid/medicationIngredient/Beispiel_21_2_67ebe8c1 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_37.xml + transform to valid/medicationPzn/Beispiel_37_78ff5d32 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_22.xml + transform to valid/medicationFreeText/Beispiel_22_ba4e7121 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_35.xml + transform to valid/medicationPzn/Beispiel_35_f54e7067 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_10_2.xml + transform to valid/medicationPzn/Beispiel_10_2_d27c0e14 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_10_1.xml + transform to valid/medicationPzn/Beispiel_10_1_0904076e +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_2.xml + transform to valid/medicationPzn/Beispiel_2_d5f08b4e +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_24.xml + transform to valid/medicationCompounding/Beispiel_24_77b6e755 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_34.xml + transform to valid/medicationPzn/Beispiel_34_7fd5f6de +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_51.xml + transform to valid/medicationCompounding/Beispiel_51_63c98839 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_13.xml + transform to valid/medicationPzn/Beispiel_13_8d85e45c +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_21_1.xml + transform to valid/medicationIngredient/Beispiel_21_1_c1bbfd8b +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_57.xml + transform to valid/medicationPzn/Beispiel_57_855147c1 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_40.xml + transform to valid/medicationPzn/Beispiel_40_ec1c5acd +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_33.xml + transform to valid/medicationPzn/Beispiel_33_34200096 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_56.xml + transform to valid/medicationPzn/Beispiel_56_bc08cd5c +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_52.xml + transform to valid/medicationCompounding/Beispiel_52_2980d248 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_54.xml + transform to valid/medicationPzn/Beispiel_54_dff1953b +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_55.xml + transform to valid/medicationPzn/Beispiel_55_10ddea96 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_41.xml + transform to valid/medicationPzn/Beispiel_41_2a94fb4b +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_17.xml + transform to valid/medicationIngredient/Beispiel_17_01142458 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_60.xml + transform to valid/medicationPzn/Beispiel_60_bc27f419 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_12.xml + transform to valid/medicationPzn/Beispiel_12_2aa01d66 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_3_PKV.xml + transform to valid/medicationPzn/Beispiel_3_PKV_1f6ef093 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_18.xml + transform to valid/medicationIngredient/Beispiel_18_fe99181f +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_29.xml + transform to valid/medicationIngredient/Beispiel_29_a90c2e57 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_42.xml + transform to valid/medicationPzn/Beispiel_42_f5df70a6 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_25.xml + transform to valid/medicationCompounding/Beispiel_25_cd31610e +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_6.xml + transform to valid/medicationPzn/Beispiel_6_5287e4ed +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_53.xml + transform to valid/medicationCompounding/Beispiel_53_f5386f17 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_4.xml + transform to valid/medicationPzn/Beispiel_4_ee308df9 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_19.xml + transform to valid/medicationIngredient/Beispiel_19_9eb9d0af +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_10_4.xml + transform to valid/medicationPzn/Beispiel_10_4_2f23f99c +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_11.xml + transform to valid/medicationPzn/Beispiel_11_1a369537 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_43.xml + transform to valid/medicationPzn/Beispiel_43_22d245d1 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_38.xml + transform to valid/medicationPzn/Beispiel_38_fb26a25e +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_49.xml + transform to valid/medicationPzn/Beispiel_49_68570de1 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_1.xml + transform to valid/medicationPzn/Beispiel_1_f40a23d0 +Filename: eRezept-Examples/Standalone-Examples/eRezept_KBV/1.1.0/Beispiel_30.xml + transform to valid/medicationPzn/Beispiel_30_1ab932b8 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Allgemein/e_rezept_verschreiben__via_dmc_zuweisen_und_erfolgreich_dispensieren/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_9102a310 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Allgemein/e_rezept_verschreiben_und_dem_versicherten_anzeigen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_89383746 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/e_rezept_durch_versicherten_löschen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_e55e8bba +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/abrufen_des_e_rezepts_als_vertreter/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_968173c9 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_nicht_möglich_bis_nach_der_dispensierung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_3f310f6f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_möglich_nach_der_dispensierung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_670603fd +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_von_markierungen_des_pkv_abgabedatensatzes_durch_versicherten/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_53d1cfe9 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/pkv_abrechnungsinformationen_löschen__wenn_die_einwilligung_vom_versicherten_widerrufen_wird/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_6e19e753 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/anfrage_zu_einem_e_rezept_und_antwort_der_apotheke/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_f4c61557 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/markieren_des_pkv_abgabedatensatzes_durch_versicherten/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_f3b90767 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/markieren_des_pkv_abgabedatensatzes_durch_versicherten/005_document_to_sign.xml + transform to valid/medicationPzn/005_document_to_sign_8e04dafe +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_möglich_erst_nach_der_dispensierung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_11cffc5c +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/dispensierinformationen_zum_e_rezept_als_versicherter_einsehen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_3bc18bf8 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/e_rezept_als_direktzuweisung_verschreiben__anzeige_im_fdv__wf_209_/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_2cbc202c +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_an_einen_vertreter_nicht_möglich_nach_dem_einlösen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_09045269 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_an_einen_vertreter/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_c3479bd3 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/anzeigen_von_direkt_zugewiesenen_e_rezepten/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_dd2d2c6b +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_per_nachricht/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_16ca6d24 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_nicht_möglich_während_der_dispensierung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_f276a8fc +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/versicherte_löscht_alle_nachrichten/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_d45686e2 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_des_e_rezepts_als_vertreter_nur_mit_accesscode_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_2d9e5916 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/versicherte_löscht_eine_nachricht/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_feff6e76 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_an_sich_selbst_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_ce4b1eb6 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/einwilligung_durch_versicherten_erteilen/005_document_to_sign.xml + transform to valid/medicationPzn/005_document_to_sign_50200ff7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_von_akzeptierten_e_rezepten_durch_den_versicherten_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_141bdd95 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_von_eingelösten_e_rezepten_durch_den_versicherten_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_7b9e2504 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/e_rezept_per_alternative_zuweisung_einlösen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_2a985325 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_der_pkv_abrechnungsinformationen_durch_den_versicherten/005_document_to_sign.xml + transform to valid/medicationPzn/005_document_to_sign_2745328a +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Fachdienst/pkv_e_rezept_an_gkv_versicherten/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_ad7148f1 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Fachdienst/pkv_e_rezept_als_direktzuweisung_an_gkv_versicherten_nicht_möglich/009_document_to_sign.xml + transform to valid/medicationPzn/009_document_to_sign_57eabb67 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Fachdienst/pkv_e_rezept_als_direktzuweisung_an_gkv_versicherten_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_6f96c033 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Fachdienst/fachdienst_löscht_alle_nachrichten_zu_einem_e_rezept_nach_dem_einlösen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_bcba7c06 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/e_rezept_durch_verordnenden_löschen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_b1146a3f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/mehrfachverordnung_für_pkv_versicherte/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_2e209d67 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/direktzuweisung_an_eine_apotheke_durch_den_arzt/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_c2ad19ce +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/entlassrezept_nicht_als_mehrfachverordnung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_862aa430 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/pkv_e_rezept_verschreiben_und_dem_versicherten_anzeigen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_a4f05dcd +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/löschen_des_e_rezepts_nicht_möglich__weil_durch_apotheke_reserviert/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_cec6c127 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/direktzuweisung_an_eine_apotheke_durch_den_arzt__wf_209_/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_76455c58 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/arztpraxis_darf_keine_nachricht_versenden/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_5ed8a5cd +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/mehrfachverordnung_für_gkv_versicherte/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_c60771b5 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/mehrfachverordnung_für_gkv_versicherte_als_direktzuweisung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_0d6a22d4 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/zusammenhängende_mehrfachverordnung_für_gkv_versicherte/023_document_to_sign.xml + transform to valid/medicationPzn/023_document_to_sign_2d819774 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/zusammenhängende_mehrfachverordnung_für_gkv_versicherte/009_document_to_sign.xml + transform to valid/medicationPzn/009_document_to_sign_4aec765d +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/zusammenhängende_mehrfachverordnung_für_gkv_versicherte/016_document_to_sign.xml + transform to valid/medicationPzn/016_document_to_sign_355db86f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/zusammenhängende_mehrfachverordnung_für_gkv_versicherte/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_02fcf3a5 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/mehrfachverordnung_für_pkv_versicherte_als_direktzuweisung/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_f25d9001 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_pkv_abrechnungsinformationen_für_gkv_workflows/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_e4726de8 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_auf_wunsch_des_versicherten__übertragung_des_accesscodes_per_nachricht/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_1e697f5a +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/benachrichtigung_beim_eingang_einer_neuen_anfrage/004_document_to_sign.xml + transform to valid/medicationPzn/004_document_to_sign_0169e0e6 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/teilrezept_nicht_einlösbar__wenn_start_des_gütligkeitszeitraums_noch_nicht_erreicht/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_840ab9b1 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/apotheke_darf_dispensierinformationen_nicht_abrufen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_cae47569 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_abrechnungsinformationen_durch_die_apotheke__wf_209_/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_4ee123e6 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/erstes_teilrezept_einer_mehrfachverordnung_einlösen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_aedad2dd +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/abrufen_der_abrechnungsinformationen_durch_einen_apotheker_mit_falschem_accesscode/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_59da5b8a +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/apotheke_löscht_nachricht/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_2aa2072e +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/eine_apotheke_darf_über_die_egk_nur_e_rezepte_einsehen_die_noch_nicht_eingelöst_sind/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_13ef7eed +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/in_der_apotheke_ein_e_rezept_mit_egk_abrufen_und_einlösen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_78aebb81 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_auf_wunsch_des_versicherten__übertragung_des_accesscodes_per_dmc/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_5e9c3c5a +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/dispensieren_mit_falschem_secret_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_19a7bde6 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/einlösen_von_e_rezepten_über_die_egk_in_krankenhaus_apotheke_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_5665652f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_nicht_möglich__weil_einwilligung_widerrufen/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_39ea3447 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/zweimaliges_akzeptieren_des_e_rezepts_durch_gleiche_apotheke_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_8e4b0bfe +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_pkv_abrechnungsinformationen_nicht_möglich__weil_e_rezept_gelöscht_wurde/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_004ef082 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/e_rezepte_mit_egk_in_der_apotheke_nur_mit_zeitlich_gültigem_prüfungsnachweis/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_dd6f3569 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/löschen_des_e_rezepts_durch_apotheke_nicht_möglich__weil_nicht_akzeptiert/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_dbeccf45 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/e_rezept_mit_egk_und_gültigem_prüfungsnachweis_in_der_apotheke_einlösen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_cb78899c +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/einlösen_des_e_rezepts_nicht_möglich__weil_durch_versicherten_gelöscht/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_1b51052c +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_pkv_abrechnungsinformationen_durch_die_apotheke_nach_änderung_der_medikation/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_9965d2f7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_pkv_abrechnungsinformationen_bereitstellen__wenn_keine_einwilligung_erteilt/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_7e017904 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/einlösen_des_e_rezepts_nicht_möglich__weil_durch_apotheke_zurückgegeben/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_cc2415eb +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/dispensierung_des_e_rezeptes_mit_unterschiedlichen_normgrößen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_1ed8eaa8 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/erneutes_dispensieren_durch_die_gleiche_apotheke_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_1c646da7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_pkv_abrechnungsinformationen_durch_die_apotheke/005_document_to_sign.xml + transform to valid/medicationPzn/005_document_to_sign_d9759800 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/pkv_e_rezept_dispensieren/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_a0b1a2cd +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/abrufen_der_abrechnungsinformationen_durch_eine_apotheke_mit_accesscode/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_a40b9e5a +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/zurückgeben_mit_falschem_secret_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_550e0973 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/e_rezept_kann_nicht_durch_eine_zweite_apotheke_reserviert_werden/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_94ddf2c1 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_pkv_abrechnungsinformationen_bereitstellen_bei_ungültigem_secret/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_fd771be7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/benachrichtigung_beim_eingang_einer_neuen_zuweisung/004_document_to_sign.xml + transform to valid/medicationPzn/004_document_to_sign_fb58223d +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ein_apotheker_darf_kein_e_rezept_signieren/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_83c10e2d +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_abrechnungsinformationen_bereitstellen_ohne_einwilligung__wf_209_/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_265b0953 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/einlösen_des_e_rezepts_nicht_möglich__weil_durch_apotheke_gelöscht/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_0854ff7a +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_nur_einmal_möglich_mit_gleichem_accesscode/003_document_to_sign.xml + transform to valid/medicationPzn/003_document_to_sign_3fb29ad6 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/quittung_erneut_abfragen/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_5da0791f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/das_abrufen_von_e_rezepten_ohne_das_zuvor_ein_aktueller_prüfungsnachweis_abgerufen_wurde__muss_vom_e_rezept_fachdienst_untersagt_werden_/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_55258d43 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/löschen_mit_falschem_secret_nicht_möglich/002_document_to_sign.xml + transform to valid/medicationPzn/002_document_to_sign_f8d80421 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_aut_idem/PZN-Verordnung_aut_idem_1/PZN_aut_idem_MedicationDispense.xml + transform to valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Arbeitsunfall/PZN-Verordnung_Arbeitsunfall_1/PZN_Arbeitsunfall_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_3/WS_V3_MedicationDispense.xml + transform to valid/medicationDispense/WS_V3_MedicationDispense_b3753083 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_1/WS_V1_MedicationDispense.xml + transform to valid/medicationDispense/WS_V1_MedicationDispense_bead4326 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_2/WS_V2_MedicationDispense.xml + transform to valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung/Wirkstoff-Verordnung_4/WS_V4_MedicationDispense.xml + transform to valid/medicationDispense/WS_V4_MedicationDispense_336380fd +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Rezeptur-parenterale_Zytostatika/Rezeptur-parenterale_Zytostatika_1/Rez_parenterale_Zytostatika_MedicationDispense.xml + transform to valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_1/PZN_MV1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_3/PZN_MV3_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_4/PZN_MV4_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN_Mehrfachverordnung/PZN_MV_2/PZN_MV2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_2/WS_BK_V2_MedicationDispense.xml + transform to valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_1/WS_BK_V1_MedicationDispense.xml + transform to valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_2/PZN_Nr2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_4/PZN_Nr4_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_7/PZN_Nr7_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_8/PZN_Nr8_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_6/PZN_Nr6_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_5/PZN_Nr5_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_3/PZN_Nr3_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung/PZN-Verordnung_1/PZN_Nr1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff_Mehrfachverordnung/WS_MV_1/WS_MV1_MedicationDispense.xml + transform to valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff_Mehrfachverordnung/WS_MV_2/WS_MV2_MedicationDispense.xml + transform to valid/medicationDispense/WS_MV2_MedicationDispense_80760961 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Freitext-Verordnung/Freitext-Verordnung_1/FT_V1_MedicationDispense.xml + transform to valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Freitext-Verordnung/Freitext-Verordnung_2/FT_V2_MedicationDispense.xml + transform to valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Rezeptur-Verordnung/Rezeptur-Verordnung_1/Rez_Nr1_MedicationDispense.xml + transform to valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Unfall/PZN-Verordnung_Unfall_1/PZN_Unfall_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_2/PZN_KB_V2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_1/PZN_KB_V1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/Wirkstoff-Verordnung_Unfall/Wirkstoff-Verordnung_Unfall_1/WS_Unfall_MedicationDispense.xml + transform to valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_2/PZN_Impfstoff_V2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_1/PZN_Impfstoff_V1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842 +Filename: eRezept-Examples/End-to-End-Examples/4_01.07.2023/PZN-Verordnung_Noctu/PZN-Verordnung_Noctu_1/PZN_Noctu_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_aut_idem/PZN-Verordnung_aut_idem_1/PZN_aut_idem_MedicationDispense.xml + transform to valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Arbeitsunfall/PZN-Verordnung_Arbeitsunfall_1/PZN_Arbeitsunfall_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_3/WS_V3_MedicationDispense.xml + transform to valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_1/WS_V1_MedicationDispense.xml + transform to valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_2/WS_V2_MedicationDispense.xml + transform to valid/medicationDispense/WS_V2_MedicationDispense_5008abb4 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung/Wirkstoff-Verordnung_4/WS_V4_MedicationDispense.xml + transform to valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Rezeptur-parenterale_Zytostatika/Rezeptur-parenterale_Zytostatika_1/Rez_parenterale_Zytostatika_MedicationDispense.xml + transform to valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_1/PZN_MV1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_3/PZN_MV3_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_4/PZN_MV4_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN_Mehrfachverordnung/PZN_MV_2/PZN_MV2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_2/WS_BK_V2_MedicationDispense.xml + transform to valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung_Berufskrankheit/Wirkstoff-Verordnung_Berufskrankheit_1/WS_BK_V1_MedicationDispense.xml + transform to valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_2/PZN_Nr2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_4/PZN_Nr4_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_7/PZN_Nr7_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_8/PZN_Nr8_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_6/PZN_Nr6_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_5/PZN_Nr5_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_3/PZN_Nr3_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung/PZN-Verordnung_1/PZN_Nr1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff_Mehrfachverordnung/WS_MV_1/WS_MV1_MedicationDispense.xml + transform to valid/medicationDispense/WS_MV1_MedicationDispense_d697d945 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff_Mehrfachverordnung/WS_MV_2/WS_MV2_MedicationDispense.xml + transform to valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Freitext-Verordnung/Freitext-Verordnung_1/FT_V1_MedicationDispense.xml + transform to valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Freitext-Verordnung/Freitext-Verordnung_2/FT_V2_MedicationDispense.xml + transform to valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Rezeptur-Verordnung/Rezeptur-Verordnung_1/Rez_Nr1_MedicationDispense.xml + transform to valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Unfall/PZN-Verordnung_Unfall_1/PZN_Unfall_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_2/PZN_KB_V2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Künstliche_Befruchtung/PZN-Verordnung_Künstliche_Befruchtung_1/PZN_KB_V1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/Wirkstoff-Verordnung_Unfall/Wirkstoff-Verordnung_Unfall_1/WS_Unfall_MedicationDispense.xml + transform to valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_2/PZN_Impfstoff_V2_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Impfstoff/PZN-Verordnung_Impfstoff_1/PZN_Impfstoff_V1_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0 +Filename: eRezept-Examples/End-to-End-Examples/5_01.11.2024/PZN-Verordnung_Noctu/PZN-Verordnung_Noctu_1/PZN_Noctu_MedicationDispense.xml + transform to valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch.xml + transform to valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN.xml + transform to valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.627.91_medicationdispense_WST.xml + transform to valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN.xml + transform to valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.564.86_medicationdispense_MVO.xml + transform to valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch.xml + transform to valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen.xml + transform to valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN.xml + transform to valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN.xml + transform to valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen.xml + transform to valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur.xml + transform to valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN.xml + transform to valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/Konnektathon_MedicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe.xml + transform to valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551 +Filename: eRezept-Examples/Standalone-Examples/E-Rezept-Workflow_gematik/1.2.0/3465270a-11e7-4bbf-ae53-378f9cc52747.xml + transform to valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Allgemein/e_rezept_verschreiben__via_dmc_zuweisen_und_erfolgreich_dispensieren/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_fa474a74 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_möglich_nach_der_dispensierung/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_4ebfa209 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_von_markierungen_des_pkv_abgabedatensatzes_durch_versicherten/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_2789ac6b +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/pkv_abrechnungsinformationen_löschen__wenn_die_einwilligung_vom_versicherten_widerrufen_wird/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_d1d6a359 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/markieren_des_pkv_abgabedatensatzes_durch_versicherten/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_31f38335 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/markieren_des_pkv_abgabedatensatzes_durch_versicherten/011_Request_MedicationDispense.xml + transform to valid/medicationDispense/011_Request_MedicationDispense_72acb68b +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_möglich_erst_nach_der_dispensierung/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_490093ae +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/dispensierinformationen_zum_e_rezept_als_versicherter_einsehen/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_909027dd +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_an_einen_vertreter_nicht_möglich_nach_dem_einlösen/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_d71fba4b +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_an_einen_vertreter/013_Request_MedicationDispense.xml + transform to valid/medicationDispense/013_Request_MedicationDispense_91805a70 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/zuweisung_per_nachricht/014_Request_MedicationDispense.xml + transform to valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/einwilligung_durch_versicherten_erteilen/011_Request_MedicationDispense.xml + transform to valid/medicationDispense/011_Request_MedicationDispense_56e40195 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_von_akzeptierten_e_rezepten_durch_den_versicherten_nicht_möglich/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_von_eingelösten_e_rezepten_durch_den_versicherten_möglich/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_687dff01 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/e_rezept_per_alternative_zuweisung_einlösen/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_7be52e28 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Versicherter/löschen_der_pkv_abrechnungsinformationen_durch_den_versicherten/011_Request_MedicationDispense.xml + transform to valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Fachdienst/fachdienst_löscht_alle_nachrichten_zu_einem_e_rezept_nach_dem_einlösen/014_Request_MedicationDispense.xml + transform to valid/medicationDispense/014_Request_MedicationDispense_e08671c3 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/direktzuweisung_an_eine_apotheke_durch_den_arzt/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_64342c02 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/löschen_des_e_rezepts_nicht_möglich__weil_durch_apotheke_reserviert/010_Request_MedicationDispense.xml + transform to valid/medicationDispense/010_Request_MedicationDispense_a8177c29 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Arztpraxis/direktzuweisung_an_eine_apotheke_durch_den_arzt__wf_209_/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_d8468bee +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_pkv_abrechnungsinformationen_für_gkv_workflows/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_15a4f10b +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_auf_wunsch_des_versicherten__übertragung_des_accesscodes_per_nachricht/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_a86d9701 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/apotheke_darf_dispensierinformationen_nicht_abrufen/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_a7854089 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_abrechnungsinformationen_durch_die_apotheke__wf_209_/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_622316fe +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/erstes_teilrezept_einer_mehrfachverordnung_einlösen/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_14610226 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/abrufen_der_abrechnungsinformationen_durch_einen_apotheker_mit_falschem_accesscode/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_cb07b09c +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/in_der_apotheke_ein_e_rezept_mit_egk_abrufen_und_einlösen/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_8dcafef9 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_auf_wunsch_des_versicherten__übertragung_des_accesscodes_per_dmc/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_59d671a6 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/dispensieren_mit_falschem_secret_nicht_möglich/010_Request_MedicationDispense.xml + transform to valid/medicationDispense/010_Request_MedicationDispense_a00e4916 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/dispensieren_mit_falschem_secret_nicht_möglich/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_e3418508 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_nicht_möglich__weil_einwilligung_widerrufen/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_41e06295 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/zweimaliges_akzeptieren_des_e_rezepts_durch_gleiche_apotheke_nicht_möglich/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_305be6c9 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_pkv_abrechnungsinformationen_nicht_möglich__weil_e_rezept_gelöscht_wurde/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/e_rezept_mit_egk_und_gültigem_prüfungsnachweis_in_der_apotheke_einlösen/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_pkv_abrechnungsinformationen_durch_die_apotheke_nach_änderung_der_medikation/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_pkv_abrechnungsinformationen_bereitstellen__wenn_keine_einwilligung_erteilt/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_5113c40f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/einlösen_des_e_rezepts_nicht_möglich__weil_durch_apotheke_zurückgegeben/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_f1564ba7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/erneutes_dispensieren_durch_die_gleiche_apotheke_nicht_möglich/010_Request_MedicationDispense.xml + transform to valid/medicationDispense/010_Request_MedicationDispense_71f76f82 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/erneutes_dispensieren_durch_die_gleiche_apotheke_nicht_möglich/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/bereitstellen_der_pkv_abrechnungsinformationen_durch_die_apotheke/011_Request_MedicationDispense.xml + transform to valid/medicationDispense/011_Request_MedicationDispense_d356fb06 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/pkv_e_rezept_dispensieren/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_543ea2ca +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/abrufen_der_abrechnungsinformationen_durch_eine_apotheke_mit_accesscode/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_87e0742e +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/zurückgeben_mit_falschem_secret_nicht_möglich/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_1473f940 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/e_rezept_kann_nicht_durch_eine_zweite_apotheke_reserviert_werden/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_0159fb4f +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_pkv_abrechnungsinformationen_bereitstellen_bei_ungültigem_secret/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_c591a1e2 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/keine_abrechnungsinformationen_bereitstellen_ohne_einwilligung__wf_209_/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/einlösen_des_e_rezepts_nicht_möglich__weil_durch_apotheke_gelöscht/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_809395bb +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/ändern_des_pkv_abgabedatensatzes_nur_einmal_möglich_mit_gleichem_accesscode/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_c48e8331 +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/quittung_erneut_abfragen/008_Request_MedicationDispense.xml + transform to valid/medicationDispense/008_Request_MedicationDispense_506e4daf +Filename: eRezept-Examples/Test-Scenarios/2023-07-01/Apotheke/löschen_mit_falschem_secret_nicht_möglich/009_Request_MedicationDispense.xml + transform to valid/medicationDispense/009_Request_MedicationDispense_c30c0754 +Filename: eRezept-Examples/API-Examples/2024-11-01/erp_abrufen/06_request_taskClose.xml + transform to valid/medicationDispense/06_request_taskClose_c8335ed8 +Filename: eRezept-Examples/API-Examples/2024-11-01/erp_abrufen/08_response_taskDispense.xml + transform to valid/medicationDispense/08_response_taskDispense_816796a2 +Filename: eRezept-Examples/API-Examples/2023-07-01/erp_abrufen/06_request_taskClose.xml + transform to valid/medicationDispense/06_request_taskClose_8d0f44ed +Filename: eRezept-Examples/API-Examples/2023-07-01/erp_abrufen/08_response_taskDispense.xml + transform to valid/medicationDispense/08_response_taskDispense_00c96c80 diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/input.xml new file mode 100644 index 00000000..67d159fe --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/input.xml @@ -0,0 +1,407 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4739972b-52d6-4bea-9ba1-d360f8c22689"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4739972b-52d6-4bea-9ba1-d360f8c22689"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4739972b-52d6-4bea-9ba1-d360f8c22689"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <name> + <use value="official"/> + <family value="Schmidt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schmidt"/> + </extension> + </family> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Dermatologin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/output.json new file mode 100644 index 00000000..b50cf591 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/output.json @@ -0,0 +1,293 @@ +{ + "resourceType": "Parameters", + "id": "d0ca163a-24f8-40d7-8617-9b541f06bd50", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.024.67" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c2e34efd-a677-4244-9a75-db1456a9ec43", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ad0442af-19ac-486b-8f59-50f0477784a3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "1–3mal/Tag auf die erkrankten Hautstellen auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ad0442af-19ac-486b-8f59-50f0477784a3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Lösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Salicylsäure" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "2-propanol 70 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a4b813e9-5280-428f-8a80-cd28b1375d66", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e00bb867-64e7-4c34-b62d-4c367cc955fe", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123412821" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Hanna Schmidt", + "family": "Schmidt", + "given": [ "Hanna" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/output.xml new file mode 100644 index 00000000..8d24c705 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_23_d0ca163a/output.xml @@ -0,0 +1,287 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d0ca163a-24f8-40d7-8617-9b541f06bd50"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c2e34efd-a677-4244-9a75-db1456a9ec43"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ad0442af-19ac-486b-8f59-50f0477784a3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ad0442af-19ac-486b-8f59-50f0477784a3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a4b813e9-5280-428f-8a80-cd28b1375d66"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e00bb867-64e7-4c34-b62d-4c367cc955fe"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Hanna Schmidt"/> + <family value="Schmidt"/> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/input.xml new file mode 100644 index 00000000..bfe8b1a5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/input.xml @@ -0,0 +1,437 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="a409358a-da34-11eb-8d19-0242ac130003"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.059.59"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/135350ea-2cea-4320-b584-537401f995bd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="135350ea-2cea-4320-b584-537401f995bd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/9711ab74-273d-44b5-be67-3cc80e9e9abd"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/9711ab74-273d-44b5-be67-3cc80e9e9abd"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9711ab74-273d-44b5-be67-3cc80e9e9abd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/619ad8c5-bc4b-4841-8a13-4162f51c06e7"/> + </medicationReference> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + </requester> + <insurance> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </insurance> + <dosageInstruction> + <patientInstruction value="Jeden 2. Tag vorm Schlafen dünn auf Achselhöhle auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/619ad8c5-bc4b-4841-8a13-4162f51c06e7"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="619ad8c5-bc4b-4841-8a13-4162f51c06e7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Packaging"> + <valueString value="Deo-Roller"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + <text value="Viskose Aluminiumchlorid-Hexahydrat-Lösung 20 % (NRF 11.132.)"/> + </code> + <form> + <text value="Gel"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10206346"/> + </coding> + <text value="Aluminiumchlorid-Hexahydrat"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form"> + <valueString value="Pulver"/> + </extension> + <itemCodeableConcept> + <text value="Hydroxyethylcellulose 250"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="2"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Gereinigtes Wasser"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + <name> + <use value="official"/> + <family value="Pan"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Pan"/> + </extension> + </family> + <given value="Peter"/> + </name> + <birthDate value="1972"/> + <address> + <type value="both"/> + <line value="Siebengebirgsstraße 59"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siebengebirgsstraße"/> + </extension> + </line> + <line value="33. Obergeschoss - Hinterhof, halbrechts"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="33. Obergeschoss - Hinterhof, halbrechts"/> + </extension> + </line> + <city value="Königswinter"/> + <postalCode value="53639"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <name> + <use value="official"/> + <family value="Schmidt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schmidt"/> + </extension> + </family> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Dermatologin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="SEL"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101377508"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/log.txt new file mode 100644 index 00000000..d52eed05 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=14,row=100,locationString=Parameters.parameter[0].part[3].resource/*Medication/5503537d-c76e-4909-aedb-82afbeea1de2*/.ingredient[0].item.ofType(CodeableConcept).coding[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[3].resource/*Medication/5503537d-c76e-4909-aedb-82afbeea1de2*/.ingredient[0].item.ofType(CodeableConcept).coding[0]: Does not match slice 'ask' (discriminator: $this.where(system = 'http://fhir.de/CodeSystem/ask').exists()), Parameters.parameter[0].part[3].resource/*Medication/5503537d-c76e-4909-aedb-82afbeea1de2*/.ingredient[0].item.ofType(CodeableConcept).coding[0]: Does not match slice 'atc-de' (discriminator: $this.where(system = 'http://fhir.de/CodeSystem/bfarm/atc').exists()), Parameters.parameter[0].part[3].resource/*Medication/5503537d-c76e-4909-aedb-82afbeea1de2*/.ingredient[0].item.ofType(CodeableConcept).coding[0]: Does not match slice 'snomed' (discriminator: $this.where(system = 'http://snomed.info/sct').exists()), Parameters.parameter[0].part[3].resource/*Medication/5503537d-c76e-4909-aedb-82afbeea1de2*/.ingredient[0].item.ofType(CodeableConcept).coding[0]: Does not match slice 'pzn' (discriminator: $this.empty())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/output.json new file mode 100644 index 00000000..daef0f2c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/output.json @@ -0,0 +1,344 @@ +{ + "resourceType": "Parameters", + "id": "77b6e755-fdd5-4671-af4b-5fb984a51b36", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.059.59" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8ecfd49c-ac04-420e-a009-312c880e164a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/5503537d-c76e-4909-aedb-82afbeea1de2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "Jeden 2. Tag vorm Schlafen dünn auf Achselhöhle auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5503537d-c76e-4909-aedb-82afbeea1de2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension", + "valueString": "Deo-Roller" + } ], + "code": { + "text": "Viskose Aluminiumchlorid-Hexahydrat-Lösung 20 % (NRF 11.132.)" + }, + "form": { + "text": "Gel" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10206346" + } ], + "text": "Aluminiumchlorid-Hexahydrat" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension", + "valueString": "Pulver" + } ], + "itemCodeableConcept": { + "text": "Hydroxyethylcellulose 250" + }, + "strength": { + "numerator": { + "value": 2, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "Gereinigtes Wasser" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "50ed58c8-f876-482a-83da-759031dd2eb1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6524ad28-d03b-4dd9-8315-71d0e774bc2f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123412821" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Hanna Schmidt", + "family": "Schmidt", + "given": [ "Hanna" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/output.xml new file mode 100644 index 00000000..69484ba2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_24_77b6e755/output.xml @@ -0,0 +1,334 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="77b6e755-fdd5-4671-af4b-5fb984a51b36"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.059.59"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8ecfd49c-ac04-420e-a009-312c880e164a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5503537d-c76e-4909-aedb-82afbeea1de2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="Jeden 2. Tag vorm Schlafen dünn auf Achselhöhle auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5503537d-c76e-4909-aedb-82afbeea1de2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension"> + <valueString value="Deo-Roller"/> + </extension> + <code> + <text value="Viskose Aluminiumchlorid-Hexahydrat-Lösung 20 % (NRF 11.132.)"/> + </code> + <form> + <text value="Gel"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10206346"/> + </coding> + <text value="Aluminiumchlorid-Hexahydrat"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension"> + <valueString value="Pulver"/> + </extension> + <itemCodeableConcept> + <text value="Hydroxyethylcellulose 250"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="2"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Gereinigtes Wasser"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="50ed58c8-f876-482a-83da-759031dd2eb1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6524ad28-d03b-4dd9-8315-71d0e774bc2f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Hanna Schmidt"/> + <family value="Schmidt"/> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/input.xml new file mode 100644 index 00000000..ff225e69 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/input.xml @@ -0,0 +1,422 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="dae573db-54e3-4cb8-880d-0a46bea8aea1"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.026.61"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/e1d276c4-f4d5-4e2d-8a82-04d92b34ca51"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="e1d276c4-f4d5-4e2d-8a82-04d92b34ca51"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c97a6538-6742-45a3-a229-2e0e792db446"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c97a6538-6742-45a3-a229-2e0e792db446"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c97a6538-6742-45a3-a229-2e0e792db446"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fd681c2a-6f35-4fa9-8c84-573157130773"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/fd681c2a-6f35-4fa9-8c84-573157130773"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fd681c2a-6f35-4fa9-8c84-573157130773"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Infusionslösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="500"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Etoposid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="180"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="NaCl 0,9 %"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="500"/> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/output.json new file mode 100644 index 00000000..1a97ef5f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/output.json @@ -0,0 +1,280 @@ +{ + "resourceType": "Parameters", + "id": "cd31610e-32dd-4a05-9067-bf43d91783fb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.026.61" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a9f31f64-eb19-4c1c-81be-9105c1074317", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1016718f-2591-4926-a4fe-011056a24be3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "zur ärztlichen parenteralen Applikation gem. Therapieplan" + } ], + "dispenseRequest": { + "quantity": { + "value": 3, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1016718f-2591-4926-a4fe-011056a24be3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Infusionslösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "500" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Etoposid" + }, + "strength": { + "numerator": { + "value": 180, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "NaCl 0,9 %" + }, + "strength": { + "numerator": { + "value": 500, + "unit": "ml", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "12ab53c4-1b89-442f-a505-df106e0a90e5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c91af2ae-dc4f-4bee-8f2f-90fc68a97d6e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/output.xml new file mode 100644 index 00000000..f78eb823 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_25_cd31610e/output.xml @@ -0,0 +1,277 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cd31610e-32dd-4a05-9067-bf43d91783fb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.026.61"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a9f31f64-eb19-4c1c-81be-9105c1074317"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1016718f-2591-4926-a4fe-011056a24be3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1016718f-2591-4926-a4fe-011056a24be3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Infusionslösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="500"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Etoposid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="180"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="NaCl 0,9 %"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="500"/> + <unit value="ml"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="12ab53c4-1b89-442f-a505-df106e0a90e5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c91af2ae-dc4f-4bee-8f2f-90fc68a97d6e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/input.xml new file mode 100644 index 00000000..44acb15e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/input.xml @@ -0,0 +1,432 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ddc83056-5dab-4411-ab13-48abfaf9c47d"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.050.86"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4a6b0467-1949-4e3e-b361-9c9a838d1878"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4a6b0467-1949-4e3e-b361-9c9a838d1878"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/6f5059fe-fe6d-423e-88a7-337957039486"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/6f5059fe-fe6d-423e-88a7-337957039486"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6f5059fe-fe6d-423e-88a7-337957039486"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8d33ae42-2329-463c-8c36-06255bee16f8"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="Täglich eine zum Frühstück"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/8d33ae42-2329-463c-8c36-06255bee16f8"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8d33ae42-2329-463c-8c36-06255bee16f8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Kapseln"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="50"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Hydrocortison"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="0.06"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Mannit"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="12.5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Siliciumdioxid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="0.5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/output.json new file mode 100644 index 00000000..4f41fddb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/output.json @@ -0,0 +1,312 @@ +{ + "resourceType": "Parameters", + "id": "c0cfd125-bdd5-4d1e-bd1f-8691383ed365", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.050.86" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9f42f691-00ca-4ff8-a442-6a82ec8c6f58", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/2934cc48-02ee-4309-9773-a3e8eeb46414" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "Täglich eine zum Frühstück" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2934cc48-02ee-4309-9773-a3e8eeb46414", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Kapseln" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "50" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Hydrocortison" + }, + "strength": { + "numerator": { + "value": 0.06, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "Mannit" + }, + "strength": { + "numerator": { + "value": 12.5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "Siliciumdioxid" + }, + "strength": { + "numerator": { + "value": 0.5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e59a85d4-4433-41b7-845e-8fe2d88996c9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c1eb068e-647f-4e8d-b5bb-095a0c4ecfad", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/output.xml new file mode 100644 index 00000000..efe2eaa3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_50_c0cfd125/output.xml @@ -0,0 +1,307 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c0cfd125-bdd5-4d1e-bd1f-8691383ed365"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.050.86"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9f42f691-00ca-4ff8-a442-6a82ec8c6f58"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/2934cc48-02ee-4309-9773-a3e8eeb46414"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="Täglich eine zum Frühstück"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2934cc48-02ee-4309-9773-a3e8eeb46414"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Kapseln"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="50"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Hydrocortison"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="0.06"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Mannit"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="12.5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Siliciumdioxid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="0.5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e59a85d4-4433-41b7-845e-8fe2d88996c9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c1eb068e-647f-4e8d-b5bb-095a0c4ecfad"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/input.xml new file mode 100644 index 00000000..ff700530 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/input.xml @@ -0,0 +1,420 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="deda8f97-38b6-4598-b805-3ef4926fc09d"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.051.83"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/373f42c6-a5a2-4143-b1de-b99ca5ba74d3"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="373f42c6-a5a2-4143-b1de-b99ca5ba74d3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/966400e9-18e3-463a-b0af-00594196efbb"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/966400e9-18e3-463a-b0af-00594196efbb"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="966400e9-18e3-463a-b0af-00594196efbb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fa428147-0baa-4fc4-9a04-ff190bdd11f6"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="Ad libitum"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/fa428147-0baa-4fc4-9a04-ff190bdd11f6"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fa428147-0baa-4fc4-9a04-ff190bdd11f6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Creme"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="50"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form"> + <valueString value="Creme"/> + </extension> + <itemCodeableConcept> + <text value="Nerisona"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form"> + <valueString value="Creme"/> + </extension> + <itemCodeableConcept> + <text value="Asche Basis"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 50 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/output.json new file mode 100644 index 00000000..400fab0b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/output.json @@ -0,0 +1,296 @@ +{ + "resourceType": "Parameters", + "id": "63c98839-e704-448f-a42c-05d1e422b1fe", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.051.83" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e1a45554-8e84-4e22-983b-b2b01068c0b6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c23c85eb-6be7-48b3-a721-3ca169e1ff92" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "Ad libitum" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c23c85eb-6be7-48b3-a721-3ca169e1ff92", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Creme" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "50" + } ], + "unit": "g" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension", + "valueString": "Creme" + } ], + "itemCodeableConcept": { + "text": "Nerisona" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension", + "valueString": "Creme" + } ], + "itemCodeableConcept": { + "text": "Asche Basis" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 50 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "27559db0-d4f9-4588-b557-ca65e6b13b08", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "154cea99-6e4a-4cfa-ac7c-b93b44399054", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/output.xml new file mode 100644 index 00000000..181b035f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_51_63c98839/output.xml @@ -0,0 +1,289 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="63c98839-e704-448f-a42c-05d1e422b1fe"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.051.83"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e1a45554-8e84-4e22-983b-b2b01068c0b6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c23c85eb-6be7-48b3-a721-3ca169e1ff92"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="Ad libitum"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c23c85eb-6be7-48b3-a721-3ca169e1ff92"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Creme"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="50"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension"> + <valueString value="Creme"/> + </extension> + <itemCodeableConcept> + <text value="Nerisona"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension"> + <valueString value="Creme"/> + </extension> + <itemCodeableConcept> + <text value="Asche Basis"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 50 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="27559db0-d4f9-4588-b557-ca65e6b13b08"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="154cea99-6e4a-4cfa-ac7c-b93b44399054"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/input.xml new file mode 100644 index 00000000..11e05e19 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/input.xml @@ -0,0 +1,420 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6f193f8b-da7b-4a77-9105-44050d8839c5"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.052.80"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/9fa07214-b744-4709-aca9-c91d23690e86"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="9fa07214-b744-4709-aca9-c91d23690e86"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/d7be9b6b-8530-43a9-87c6-c01602cf3def"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/d7be9b6b-8530-43a9-87c6-c01602cf3def"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d7be9b6b-8530-43a9-87c6-c01602cf3def"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c7320d8f-1bec-4063-8ae2-9609ecef65f9"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="Ad libitum"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/c7320d8f-1bec-4063-8ae2-9609ecef65f9"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c7320d8f-1bec-4063-8ae2-9609ecef65f9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Salbe"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="60"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form"> + <valueString value="Salbe"/> + </extension> + <itemCodeableConcept> + <text value="Nerisona"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="30"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form"> + <valueString value="Salbe"/> + </extension> + <itemCodeableConcept> + <text value="Asche Basis"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 60 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/output.json new file mode 100644 index 00000000..4b8d56cb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/output.json @@ -0,0 +1,296 @@ +{ + "resourceType": "Parameters", + "id": "2980d248-49f1-4e91-aa75-778d4751390b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.052.80" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "ab10c5e2-4d86-4e96-9b94-285f04be73d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/11f4494c-2a56-42f2-8605-4b69f5e79a49" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "Ad libitum" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "11f4494c-2a56-42f2-8605-4b69f5e79a49", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Salbe" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "60" + } ], + "unit": "g" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension", + "valueString": "Salbe" + } ], + "itemCodeableConcept": { + "text": "Nerisona" + }, + "strength": { + "numerator": { + "value": 30, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension", + "valueString": "Salbe" + } ], + "itemCodeableConcept": { + "text": "Asche Basis" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 60 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5347fd74-5d10-4d2b-b3ff-e425510b76b4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "8b5e8db7-583b-46c1-aed9-ceffe28df161", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/output.xml new file mode 100644 index 00000000..2e93740c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_52_2980d248/output.xml @@ -0,0 +1,289 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2980d248-49f1-4e91-aa75-778d4751390b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.052.80"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ab10c5e2-4d86-4e96-9b94-285f04be73d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/11f4494c-2a56-42f2-8605-4b69f5e79a49"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="Ad libitum"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="11f4494c-2a56-42f2-8605-4b69f5e79a49"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Salbe"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="60"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension"> + <valueString value="Salbe"/> + </extension> + <itemCodeableConcept> + <text value="Nerisona"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="30"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension"> + <valueString value="Salbe"/> + </extension> + <itemCodeableConcept> + <text value="Asche Basis"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 60 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5347fd74-5d10-4d2b-b3ff-e425510b76b4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8b5e8db7-583b-46c1-aed9-ceffe28df161"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/input.xml new file mode 100644 index 00000000..624b8a00 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/input.xml @@ -0,0 +1,417 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="465f1638-1fbe-462e-a68a-e25b7b507c3e"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.053.77"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/f2b34822-c748-4285-a78c-8861e76588d7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f2b34822-c748-4285-a78c-8861e76588d7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/74b3e33f-3c13-4814-9d78-197d2ff9f7de"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/74b3e33f-3c13-4814-9d78-197d2ff9f7de"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="74b3e33f-3c13-4814-9d78-197d2ff9f7de"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ce7953d0-25a1-4998-a246-53973eab64e6"/> + </medicationReference> + <subject> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + </insurance> + <dosageInstruction> + <patientInstruction value="Ad libitum"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/ce7953d0-25a1-4998-a246-53973eab64e6"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ce7953d0-25a1-4998-a246-53973eab64e6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Creme"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="200"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Erythromycin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="2.5"/> + <unit value="%"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Oleum Rosae"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="1"/> + <unit value="%"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Ungt. Emulsificans aquos."/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 200 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="E111111113"/> + </identifier> + <name> + <use value="official"/> + <family value="Christrose"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Christrose"/> + </extension> + </family> + <given value="Christa"/> + </name> + <birthDate value="1933-03-13"/> + <address> + <type value="both"/> + <line value="Nagelsweg 27"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Nagelsweg"/> + </extension> + </line> + <city value="Hamburg"/> + <postalCode value="20097"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="02"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101560000"/> + </identifier> + <display value="DAK-GESUNDHEIT"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/output.json new file mode 100644 index 00000000..29b3053a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/output.json @@ -0,0 +1,325 @@ +{ + "resourceType": "Parameters", + "id": "f5386f17-67f1-48b1-9078-94e0d58f0769", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.053.77" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "457add25-067c-4530-a197-901092342a2d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c12fb7ca-aadf-43be-86d5-49d3a72c893f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "patientInstruction": "Ad libitum" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c12fb7ca-aadf-43be-86d5-49d3a72c893f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Creme" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "200" + } ], + "unit": "g" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Erythromycin" + }, + "strength": { + "numerator": { + "value": 2.5, + "unit": "%", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "Oleum Rosae" + }, + "strength": { + "numerator": { + "value": 1, + "unit": "%", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "Ungt. Emulsificans aquos." + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 200 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5be8296c-1132-4d55-a6ad-8afb6f3bbba1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "7853b9ff-ac7e-476d-bbef-467af4d3c34d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/output.xml new file mode 100644 index 00000000..beb07ff5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Beispiel_53_f5386f17/output.xml @@ -0,0 +1,317 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f5386f17-67f1-48b1-9078-94e0d58f0769"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.053.77"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="457add25-067c-4530-a197-901092342a2d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c12fb7ca-aadf-43be-86d5-49d3a72c893f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <patientInstruction value="Ad libitum"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c12fb7ca-aadf-43be-86d5-49d3a72c893f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Creme"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="200"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Erythromycin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="2.5"/> + <unit value="%"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Oleum Rosae"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="1"/> + <unit value="%"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Ungt. Emulsificans aquos."/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 200 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5be8296c-1132-4d55-a6ad-8afb6f3bbba1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7853b9ff-ac7e-476d-bbef-467af4d3c34d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/input.xml new file mode 100644 index 00000000..6fa1f8c7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/input.xml @@ -0,0 +1,407 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9581ce65-b118-4751-9073-19c091b341e0"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/80a467fb-36ad-4549-8be1-12f0e4520c73"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="80a467fb-36ad-4549-8be1-12f0e4520c73"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4739972b-52d6-4bea-9ba1-d360f8c22689"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4739972b-52d6-4bea-9ba1-d360f8c22689"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4739972b-52d6-4bea-9ba1-d360f8c22689"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <name> + <use value="official"/> + <family value="Schmidt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schmidt"/> + </extension> + </family> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Dermatologin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/output.json new file mode 100644 index 00000000..19678a2f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/output.json @@ -0,0 +1,293 @@ +{ + "resourceType": "Parameters", + "id": "6b905d63-1de0-45c9-91b8-b1b54c34a141", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.024.67" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7e900422-5bc3-414a-8993-bfad0b89068c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c990176b-c910-4191-8c0f-f6e996785e92" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dosageInstruction": [ { + "patientInstruction": "1–3mal/Tag auf die erkrankten Hautstellen auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c990176b-c910-4191-8c0f-f6e996785e92", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Lösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Salicylsäure" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "2-propanol 70 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9e0196a3-9b4b-4beb-b535-be2fa9198d02", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "9410eae3-e0b2-4a55-9e57-b34160f84bbc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123412821" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Hanna Schmidt", + "family": "Schmidt", + "given": [ "Hanna" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/output.xml new file mode 100644 index 00000000..87134bb2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_6b905d63/output.xml @@ -0,0 +1,287 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6b905d63-1de0-45c9-91b8-b1b54c34a141"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7e900422-5bc3-414a-8993-bfad0b89068c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c990176b-c910-4191-8c0f-f6e996785e92"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dosageInstruction> + <patientInstruction value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c990176b-c910-4191-8c0f-f6e996785e92"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9e0196a3-9b4b-4beb-b535-be2fa9198d02"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9410eae3-e0b2-4a55-9e57-b34160f84bbc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Hanna Schmidt"/> + <family value="Schmidt"/> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/input.xml new file mode 100644 index 00000000..ca70c607 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/input.xml @@ -0,0 +1,407 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9581ce65-b118-4751-9073-19c091b341e0"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/80a467fb-36ad-4549-8be1-12f0e4520c73"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="80a467fb-36ad-4549-8be1-12f0e4520c73"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4739972b-52d6-4bea-9ba1-d360f8c22689"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4739972b-52d6-4bea-9ba1-d360f8c22689"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4739972b-52d6-4bea-9ba1-d360f8c22689"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ec5b4fcf-9739-4055-b23c-a5b3a65beb66"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <name> + <use value="official"/> + <family value="Schmidt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schmidt"/> + </extension> + </family> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Dermatologin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/output.json new file mode 100644 index 00000000..7db83be7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/output.json @@ -0,0 +1,293 @@ +{ + "resourceType": "Parameters", + "id": "e2b9bad6-daef-4e42-a33b-fc8ce4d9cee3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.024.67" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c44f0c9e-96eb-4817-bde8-19c74b3c6e9a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7365a91b-b962-4324-aa33-7c9bf511a66a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dosageInstruction": [ { + "patientInstruction": "1–3mal/Tag auf die erkrankten Hautstellen auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7365a91b-b962-4324-aa33-7c9bf511a66a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Lösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Salicylsäure" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "2-propanol 70 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "377509df-e344-4b32-8f9e-3ad3e78e01f7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "79b26bf7-c05f-49bb-ad2d-c736615d3eb1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123412821" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Hanna Schmidt", + "family": "Schmidt", + "given": [ "Hanna" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/output.xml new file mode 100644 index 00000000..bc0f56f8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_Nr1_VerordnungArzt_e2b9bad6/output.xml @@ -0,0 +1,287 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e2b9bad6-daef-4e42-a33b-fc8ce4d9cee3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c44f0c9e-96eb-4817-bde8-19c74b3c6e9a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7365a91b-b962-4324-aa33-7c9bf511a66a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dosageInstruction> + <patientInstruction value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7365a91b-b962-4324-aa33-7c9bf511a66a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="377509df-e344-4b32-8f9e-3ad3e78e01f7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="79b26bf7-c05f-49bb-ad2d-c736615d3eb1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123412821"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Hanna Schmidt"/> + <family value="Schmidt"/> + <given value="Hanna"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/input.xml new file mode 100644 index 00000000..0e2b20b2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/input.xml @@ -0,0 +1,418 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="dae573db-54e3-4cb8-880d-0a46bea8aea1"/> + <meta> + <lastUpdated value="2024-11-24T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-24T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/e1d276c4-f4d5-4e2d-8a82-04d92b34ca51"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="e1d276c4-f4d5-4e2d-8a82-04d92b34ca51"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2024-11-24T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c97a6538-6742-45a3-a229-2e0e792db446"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c97a6538-6742-45a3-a229-2e0e792db446"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c97a6538-6742-45a3-a229-2e0e792db446"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fd681c2a-6f35-4fa9-8c84-573157130773"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2024-11-24"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/fd681c2a-6f35-4fa9-8c84-573157130773"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fd681c2a-6f35-4fa9-8c84-573157130773"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Infusionslösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="500"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Etoposid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="180"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="NaCl 0,9 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="ad 500 ml"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus Betriebskrankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/output.json new file mode 100644 index 00000000..aa2632da --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/output.json @@ -0,0 +1,293 @@ +{ + "resourceType": "Parameters", + "id": "033c56e0-d603-489b-8319-7e3617c16c66", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.018.562.305.023.72" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-24" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b44223ed-f19b-460c-aee0-b7de573cc144", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ca3f42bb-f6b3-4a02-bc0e-63170797ea34" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-24", + "dosageInstruction": [ { + "patientInstruction": "zur ärztlichen parenteralen Applikation gem. Therapieplan" + } ], + "dispenseRequest": { + "quantity": { + "value": 3, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ca3f42bb-f6b3-4a02-bc0e-63170797ea34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Infusionslösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "500" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Etoposid" + }, + "strength": { + "numerator": { + "value": 180, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "NaCl 0,9 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "ad 500 ml" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "58e76559-ce74-41cc-b860-f16bcbf67702", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "463af580-d8ed-442b-8354-66b646359363", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/output.xml new file mode 100644 index 00000000..c2769e60 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_033c56e0/output.xml @@ -0,0 +1,287 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="033c56e0-d603-489b-8319-7e3617c16c66"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-24"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b44223ed-f19b-460c-aee0-b7de573cc144"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ca3f42bb-f6b3-4a02-bc0e-63170797ea34"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-24"/> + <dosageInstruction> + <patientInstruction value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ca3f42bb-f6b3-4a02-bc0e-63170797ea34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Infusionslösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="500"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Etoposid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="180"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="NaCl 0,9 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="ad 500 ml"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="58e76559-ce74-41cc-b860-f16bcbf67702"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="463af580-d8ed-442b-8354-66b646359363"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/input.xml new file mode 100644 index 00000000..c8e85a9d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/input.xml @@ -0,0 +1,418 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="dae573db-54e3-4cb8-880d-0a46bea8aea1"/> + <meta> + <lastUpdated value="2023-07-24T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-24T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/e1d276c4-f4d5-4e2d-8a82-04d92b34ca51"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="e1d276c4-f4d5-4e2d-8a82-04d92b34ca51"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2023-07-24T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c97a6538-6742-45a3-a229-2e0e792db446"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c97a6538-6742-45a3-a229-2e0e792db446"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c97a6538-6742-45a3-a229-2e0e792db446"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fd681c2a-6f35-4fa9-8c84-573157130773"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2023-07-24"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <patientInstruction value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/fd681c2a-6f35-4fa9-8c84-573157130773"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fd681c2a-6f35-4fa9-8c84-573157130773"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Infusionslösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="500"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Etoposid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="180"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="NaCl 0,9 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="ad 500 ml"/> + </extension> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus Betriebskrankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/output.json new file mode 100644 index 00000000..b4a07385 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/output.json @@ -0,0 +1,293 @@ +{ + "resourceType": "Parameters", + "id": "042df730-d189-4cc6-91f9-8cb0d68e459a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.018.562.305.023.72" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-24" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "2525f790-4961-4195-a5cd-b3eaa899ada2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c155a2f2-7201-4454-beb3-6025b201e38e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-24", + "dosageInstruction": [ { + "patientInstruction": "zur ärztlichen parenteralen Applikation gem. Therapieplan" + } ], + "dispenseRequest": { + "quantity": { + "value": 3, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c155a2f2-7201-4454-beb3-6025b201e38e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Infusionslösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "500" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Etoposid" + }, + "strength": { + "numerator": { + "value": 180, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "NaCl 0,9 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "ad 500 ml" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d8ce2a91-ff95-4049-aa6c-eb4cfc26d743", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "9ead6ff2-1a33-4142-ab1a-f572c47eaa5a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/output.xml new file mode 100644 index 00000000..d4b64965 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationCompounding/Rez_parenterale_Zytostatika_VerordnungArzt_042df730/output.xml @@ -0,0 +1,287 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="042df730-d189-4cc6-91f9-8cb0d68e459a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-24"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2525f790-4961-4195-a5cd-b3eaa899ada2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c155a2f2-7201-4454-beb3-6025b201e38e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-24"/> + <dosageInstruction> + <patientInstruction value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c155a2f2-7201-4454-beb3-6025b201e38e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Infusionslösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="500"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Etoposid"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="180"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="NaCl 0,9 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="ad 500 ml"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d8ce2a91-ff95-4049-aa6c-eb4cfc26d743"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9ead6ff2-1a33-4142-ab1a-f572c47eaa5a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/input.xml new file mode 100644 index 00000000..67cfb7bf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c9011d4b-4d85-47b4-b89b-cef22a0d647a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6f068ff5-f3e7-470f-9899-91f804ce3944"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="42938335"/> + </coding> + <text value="Fexvomilzol"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.784.20"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#6f068ff5-f3e7-470f-9899-91f804ce3944"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/log.txt new file mode 100644 index 00000000..1fe803d1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/559e6ae6-bdfd-4564-9848-5a6cbb6c440a*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/559e6ae6-bdfd-4564-9848-5a6cbb6c440a*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/559e6ae6-bdfd-4564-9848-5a6cbb6c440a*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/output.json new file mode 100644 index 00000000..89143aab --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "14610226-9fcc-4853-8dee-763f9a5e1a71", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "559e6ae6-bdfd-4564-9848-5a6cbb6c440a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.784.20" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/9cc0d10d-7b29-4e6f-a125-1fa623c2dc2a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/b78d4a93-64e0-4f48-9aa9-e693f1376e8c" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9cc0d10d-7b29-4e6f-a125-1fa623c2dc2a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "42938335" + } ], + "text": "Fexvomilzol" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "b78d4a93-64e0-4f48-9aa9-e693f1376e8c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Moe Skeeto" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/output.xml new file mode 100644 index 00000000..850016d7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_14610226/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="14610226-9fcc-4853-8dee-763f9a5e1a71"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="559e6ae6-bdfd-4564-9848-5a6cbb6c440a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.784.20"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/9cc0d10d-7b29-4e6f-a125-1fa623c2dc2a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/b78d4a93-64e0-4f48-9aa9-e693f1376e8c"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9cc0d10d-7b29-4e6f-a125-1fa623c2dc2a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="42938335"/> + </coding> + <text value="Fexvomilzol"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b78d4a93-64e0-4f48-9aa9-e693f1376e8c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Moe Skeeto"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/input.xml new file mode 100644 index 00000000..f84cee95 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="de72e8de-ad97-4453-be83-0f83ef948b89"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9adfbfc4-7b3c-49d1-9f6e-34f02761782e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="14659553"/> + </coding> + <text value="Abaamisure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.695.62"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#9adfbfc4-7b3c-49d1-9f6e-34f02761782e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110499478"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/log.txt new file mode 100644 index 00000000..efde372c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/f28171be-18ad-480a-8b94-a02e2cf514be*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/f28171be-18ad-480a-8b94-a02e2cf514be*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/f28171be-18ad-480a-8b94-a02e2cf514be*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/output.json new file mode 100644 index 00000000..9dcbb919 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "15a4f10b-78fc-4075-b2e4-03ee54033b61", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "f28171be-18ad-480a-8b94-a02e2cf514be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.695.62" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/87d8c536-ad20-4f40-8b08-d5b30570c3d9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110499478" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/5e9d87a7-fc26-46d4-a882-4c63e95f33f4" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "87d8c536-ad20-4f40-8b08-d5b30570c3d9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "14659553" + } ], + "text": "Abaamisure" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "5e9d87a7-fc26-46d4-a882-4c63e95f33f4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Anna Mull" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/output.xml new file mode 100644 index 00000000..685b03ae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_15a4f10b/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="15a4f10b-78fc-4075-b2e4-03ee54033b61"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f28171be-18ad-480a-8b94-a02e2cf514be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.695.62"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/87d8c536-ad20-4f40-8b08-d5b30570c3d9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110499478"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/5e9d87a7-fc26-46d4-a882-4c63e95f33f4"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="87d8c536-ad20-4f40-8b08-d5b30570c3d9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="14659553"/> + </coding> + <text value="Abaamisure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5e9d87a7-fc26-46d4-a882-4c63e95f33f4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Anna Mull"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/input.xml new file mode 100644 index 00000000..29283b0b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="076ea66c-f833-4598-bb3f-b6e047da396d"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8e061f5f-d969-4642-b6fc-1fd835f0e282"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.765.77"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8e061f5f-d969-4642-b6fc-1fd835f0e282"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/log.txt new file mode 100644 index 00000000..f2a7dcf5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5c2d5e28-b1dc-44b2-86ad-93abed48fd8e*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5c2d5e28-b1dc-44b2-86ad-93abed48fd8e*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5c2d5e28-b1dc-44b2-86ad-93abed48fd8e*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/output.json new file mode 100644 index 00000000..788f115e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "2bcb39ce-3feb-4723-8c19-a364b387e445", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5c2d5e28-b1dc-44b2-86ad-93abed48fd8e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.765.77" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/bf3454db-19b7-4ea3-a812-179f8213122c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/7f0901e2-6adb-4ae7-8416-5dbbbed2c2fb" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bf3454db-19b7-4ea3-a812-179f8213122c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "7f0901e2-6adb-4ae7-8416-5dbbbed2c2fb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Tamara Knight" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/output.xml new file mode 100644 index 00000000..f7b7dcc1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_2bcb39ce/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2bcb39ce-3feb-4723-8c19-a364b387e445"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5c2d5e28-b1dc-44b2-86ad-93abed48fd8e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.765.77"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/bf3454db-19b7-4ea3-a812-179f8213122c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/7f0901e2-6adb-4ae7-8416-5dbbbed2c2fb"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bf3454db-19b7-4ea3-a812-179f8213122c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="7f0901e2-6adb-4ae7-8416-5dbbbed2c2fb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Tamara Knight"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/input.xml new file mode 100644 index 00000000..9fe7a8a9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f9a262d7-26a7-4ad6-a2ea-0d509dee7e89"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5d524fd1-9f6f-4a89-b14e-7c2b14bc0c24"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="47126688"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.690.77"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5d524fd1-9f6f-4a89-b14e-7c2b14bc0c24"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/log.txt new file mode 100644 index 00000000..10079e1b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/57a5b0e7-dd6d-49cb-a01b-1b639d5b7c4c*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/57a5b0e7-dd6d-49cb-a01b-1b639d5b7c4c*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/57a5b0e7-dd6d-49cb-a01b-1b639d5b7c4c*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/output.json new file mode 100644 index 00000000..3eb00679 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "490093ae-7195-4f30-b325-5365e40fc8e4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "57a5b0e7-dd6d-49cb-a01b-1b639d5b7c4c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.690.77" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/9b61a532-6069-4dcc-afa5-d26a8e2340f6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/d2f25b90-f979-42e0-815c-3eeb51df8857" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9b61a532-6069-4dcc-afa5-d26a8e2340f6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "47126688" + } ], + "text": "Zytostatika" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "d2f25b90-f979-42e0-815c-3eeb51df8857", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rocky Beach" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/output.xml new file mode 100644 index 00000000..10e0aca8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_490093ae/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="490093ae-7195-4f30-b325-5365e40fc8e4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="57a5b0e7-dd6d-49cb-a01b-1b639d5b7c4c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.690.77"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/9b61a532-6069-4dcc-afa5-d26a8e2340f6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/d2f25b90-f979-42e0-815c-3eeb51df8857"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9b61a532-6069-4dcc-afa5-d26a8e2340f6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="47126688"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2f25b90-f979-42e0-815c-3eeb51df8857"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rocky Beach"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/input.xml new file mode 100644 index 00000000..fb97c062 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c8f501a7-fd86-4026-b888-9ef7e77e28af"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="44a2f90f-39d2-407b-9ff6-d85f733885de"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="27318836"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.999.22"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#44a2f90f-39d2-407b-9ff6-d85f733885de"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/log.txt new file mode 100644 index 00000000..570d5fc5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/3e4ad421-4b31-4a3f-9af0-d8c4b227f248*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/3e4ad421-4b31-4a3f-9af0-d8c4b227f248*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/3e4ad421-4b31-4a3f-9af0-d8c4b227f248*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/output.json new file mode 100644 index 00000000..cb0aad12 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "4ebfa209-3e53-4fd1-be62-60a077d0bbe3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "3e4ad421-4b31-4a3f-9af0-d8c4b227f248", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.999.22" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/fd4c80c4-7fc7-4dfa-a096-afa69437d050" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f65fba8a-826e-452b-9074-f6d36de26c4a" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fd4c80c4-7fc7-4dfa-a096-afa69437d050", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "27318836" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f65fba8a-826e-452b-9074-f6d36de26c4a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Evan Keel" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/output.xml new file mode 100644 index 00000000..16c7e781 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_4ebfa209/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="4ebfa209-3e53-4fd1-be62-60a077d0bbe3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3e4ad421-4b31-4a3f-9af0-d8c4b227f248"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.999.22"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/fd4c80c4-7fc7-4dfa-a096-afa69437d050"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f65fba8a-826e-452b-9074-f6d36de26c4a"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fd4c80c4-7fc7-4dfa-a096-afa69437d050"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="27318836"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f65fba8a-826e-452b-9074-f6d36de26c4a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Evan Keel"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/input.xml new file mode 100644 index 00000000..ec300962 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ddedee4f-897f-463b-a31a-363336c4d2ae"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8b58a971-50ea-412e-b5d0-5fc7a314e626"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.753.16"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8b58a971-50ea-412e-b5d0-5fc7a314e626"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/log.txt new file mode 100644 index 00000000..05916d7d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/bc82b0c1-e9b7-4c1a-9440-a201a7a66583*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/bc82b0c1-e9b7-4c1a-9440-a201a7a66583*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/bc82b0c1-e9b7-4c1a-9440-a201a7a66583*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/output.json new file mode 100644 index 00000000..7972939c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "506e4daf-d63a-4770-91ec-d7db1f5aa478", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "bc82b0c1-e9b7-4c1a-9440-a201a7a66583", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.753.16" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/200ba224-64dc-4dc4-a233-55886290fcb1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/e2497f92-adc5-41a6-9633-348af408bd96" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "200ba224-64dc-4dc4-a233-55886290fcb1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "e2497f92-adc5-41a6-9633-348af408bd96", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jasmine Flowers" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/output.xml new file mode 100644 index 00000000..67cee2dc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_506e4daf/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="506e4daf-d63a-4770-91ec-d7db1f5aa478"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="bc82b0c1-e9b7-4c1a-9440-a201a7a66583"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.753.16"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/200ba224-64dc-4dc4-a233-55886290fcb1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/e2497f92-adc5-41a6-9633-348af408bd96"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="200ba224-64dc-4dc4-a233-55886290fcb1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e2497f92-adc5-41a6-9633-348af408bd96"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jasmine Flowers"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/input.xml new file mode 100644 index 00000000..e90c9a7a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="357fb680-6876-4e7f-b25d-d2c4c028441c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f5b4d81a-1800-4c6c-8771-3e39d16c2c30"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.525.73"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#f5b4d81a-1800-4c6c-8771-3e39d16c2c30"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/log.txt new file mode 100644 index 00000000..bad9b06a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/a1cc6022-6f63-4634-a3ab-e5192c20a736*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/a1cc6022-6f63-4634-a3ab-e5192c20a736*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/a1cc6022-6f63-4634-a3ab-e5192c20a736*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/output.json new file mode 100644 index 00000000..e2139ab9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "543ea2ca-de98-43a6-b8ca-89dd1c9ac1ac", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "a1cc6022-6f63-4634-a3ab-e5192c20a736", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.525.73" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b2db8d28-df6f-4d87-a714-e720bfe73115" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/eafc3e6d-686a-49f6-95bc-34ab5020a8cc" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b2db8d28-df6f-4d87-a714-e720bfe73115", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "eafc3e6d-686a-49f6-95bc-34ab5020a8cc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Bob Inforapples" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/output.xml new file mode 100644 index 00000000..1fc98dc6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_543ea2ca/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="543ea2ca-de98-43a6-b8ca-89dd1c9ac1ac"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a1cc6022-6f63-4634-a3ab-e5192c20a736"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.525.73"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b2db8d28-df6f-4d87-a714-e720bfe73115"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/eafc3e6d-686a-49f6-95bc-34ab5020a8cc"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b2db8d28-df6f-4d87-a714-e720bfe73115"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="eafc3e6d-686a-49f6-95bc-34ab5020a8cc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Bob Inforapples"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/input.xml new file mode 100644 index 00000000..b2a927f6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="466b70a6-4479-4838-8370-3cd38a78a451"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f9adf34b-54b3-4136-8227-bbb52adb4a81"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="60537835"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.687.86"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#f9adf34b-54b3-4136-8227-bbb52adb4a81"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/log.txt new file mode 100644 index 00000000..30211047 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/f03b4799-b9a5-472f-8b6e-e38d9999d4e1*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/f03b4799-b9a5-472f-8b6e-e38d9999d4e1*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/f03b4799-b9a5-472f-8b6e-e38d9999d4e1*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/output.json new file mode 100644 index 00000000..db0252f0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "64342c02-111c-4262-8714-877aeaf473cb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "f03b4799-b9a5-472f-8b6e-e38d9999d4e1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.687.86" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f2356417-0ec5-406f-86cc-445f1b4747dd" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ba1196ed-0c61-492b-8566-5853e09fd567" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f2356417-0ec5-406f-86cc-445f1b4747dd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "60537835" + } ], + "text": "Zytostatika" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ba1196ed-0c61-492b-8566-5853e09fd567", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "U. O. Money" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/output.xml new file mode 100644 index 00000000..5ba3dee2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_64342c02/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="64342c02-111c-4262-8714-877aeaf473cb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f03b4799-b9a5-472f-8b6e-e38d9999d4e1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.687.86"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f2356417-0ec5-406f-86cc-445f1b4747dd"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ba1196ed-0c61-492b-8566-5853e09fd567"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f2356417-0ec5-406f-86cc-445f1b4747dd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="60537835"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ba1196ed-0c61-492b-8566-5853e09fd567"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="U. O. Money"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/input.xml new file mode 100644 index 00000000..94007fff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="cb5b4379-3542-4ab4-96cb-1f557a8a25d8"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="59321cad-29d5-4873-9f7e-d4e9460578fa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.764.80"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#59321cad-29d5-4873-9f7e-d4e9460578fa"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/log.txt new file mode 100644 index 00000000..33f57336 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/08ce1643-c748-4aee-af4b-0e26e1097667*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/08ce1643-c748-4aee-af4b-0e26e1097667*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/08ce1643-c748-4aee-af4b-0e26e1097667*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/output.json new file mode 100644 index 00000000..960a08cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "687dff01-64a5-47e3-931d-b0d0d258312b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "08ce1643-c748-4aee-af4b-0e26e1097667", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.764.80" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/fca058d1-2fb7-434d-938f-282d6182ac10" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/0312b7ec-b96a-47d1-81fb-881b2e75a076" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fca058d1-2fb7-434d-938f-282d6182ac10", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "0312b7ec-b96a-47d1-81fb-881b2e75a076", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Pearl E White" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/output.xml new file mode 100644 index 00000000..e7e2bc46 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_687dff01/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="687dff01-64a5-47e3-931d-b0d0d258312b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="08ce1643-c748-4aee-af4b-0e26e1097667"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.764.80"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/fca058d1-2fb7-434d-938f-282d6182ac10"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/0312b7ec-b96a-47d1-81fb-881b2e75a076"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fca058d1-2fb7-434d-938f-282d6182ac10"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0312b7ec-b96a-47d1-81fb-881b2e75a076"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Pearl E White"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/input.xml new file mode 100644 index 00000000..fb947824 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="fe8a28dd-4a9d-4df7-b8a8-8f0434f8526a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="05e937fd-3b04-4422-acb5-ec31f39109c9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.807.48"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#05e937fd-3b04-4422-acb5-ec31f39109c9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/log.txt new file mode 100644 index 00000000..627196fa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/209331fb-44f8-40ba-8367-6ac0d345ea78*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/209331fb-44f8-40ba-8367-6ac0d345ea78*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/209331fb-44f8-40ba-8367-6ac0d345ea78*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/output.json new file mode 100644 index 00000000..4a552f26 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "7be52e28-6841-40be-8b45-b9cd153efb50", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "209331fb-44f8-40ba-8367-6ac0d345ea78", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.807.48" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/a34bbecf-9dbb-4a41-afaa-cbb141a72ebe" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/50084b21-698c-4f40-a24f-9198952b14d4" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a34bbecf-9dbb-4a41-afaa-cbb141a72ebe", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "50084b21-698c-4f40-a24f-9198952b14d4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Marty Graw" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/output.xml new file mode 100644 index 00000000..3e377429 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_7be52e28/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="7be52e28-6841-40be-8b45-b9cd153efb50"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="209331fb-44f8-40ba-8367-6ac0d345ea78"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.807.48"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/a34bbecf-9dbb-4a41-afaa-cbb141a72ebe"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/50084b21-698c-4f40-a24f-9198952b14d4"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a34bbecf-9dbb-4a41-afaa-cbb141a72ebe"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="50084b21-698c-4f40-a24f-9198952b14d4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Marty Graw"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/input.xml new file mode 100644 index 00000000..d6ba8009 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a21e7dbb-db33-4723-b6aa-0d2ea59e7e1a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="31854a03-ec93-4ff2-ad12-b2e7fab74099"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.758.98"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#31854a03-ec93-4ff2-ad12-b2e7fab74099"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/log.txt new file mode 100644 index 00000000..493d845d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/f53ad09b-acbe-47be-963c-a69d3b8c94d4*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/f53ad09b-acbe-47be-963c-a69d3b8c94d4*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/f53ad09b-acbe-47be-963c-a69d3b8c94d4*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/output.json new file mode 100644 index 00000000..16c1c893 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "809395bb-0e90-48c7-aee1-031d3e00ed62", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "f53ad09b-acbe-47be-963c-a69d3b8c94d4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.758.98" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/479ceadd-d74a-4a3e-8b2b-9bea105f6d23" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/2b964011-5765-4ffe-a49c-a08e19d7a42d" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "479ceadd-d74a-4a3e-8b2b-9bea105f6d23", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "2b964011-5765-4ffe-a49c-a08e19d7a42d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ivan Oder" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/output.xml new file mode 100644 index 00000000..57d570be --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_809395bb/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="809395bb-0e90-48c7-aee1-031d3e00ed62"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f53ad09b-acbe-47be-963c-a69d3b8c94d4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.758.98"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/479ceadd-d74a-4a3e-8b2b-9bea105f6d23"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/2b964011-5765-4ffe-a49c-a08e19d7a42d"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="479ceadd-d74a-4a3e-8b2b-9bea105f6d23"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2b964011-5765-4ffe-a49c-a08e19d7a42d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ivan Oder"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/input.xml new file mode 100644 index 00000000..449f350a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="70a68a32-8a1a-405a-9f01-f6da6fc9d8ff"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="80dcfd04-c4d9-4c31-bc4a-08253d86f10f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.752.19"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#80dcfd04-c4d9-4c31-bc4a-08253d86f10f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/log.txt new file mode 100644 index 00000000..53562017 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5181c149-c233-4159-b41d-8bdbbd1eb482*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5181c149-c233-4159-b41d-8bdbbd1eb482*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5181c149-c233-4159-b41d-8bdbbd1eb482*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/output.json new file mode 100644 index 00000000..565805db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "909027dd-3eda-4810-b443-65d4aa3fd8ed", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5181c149-c233-4159-b41d-8bdbbd1eb482", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.752.19" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/8e4c10de-6a5b-4b62-8d9a-f523f6733d0d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/6fe56858-4f22-415a-b83f-89cc052d0f6a" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8e4c10de-6a5b-4b62-8d9a-f523f6733d0d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "6fe56858-4f22-415a-b83f-89cc052d0f6a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Darren Deeds" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/output.xml new file mode 100644 index 00000000..88867f5c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_909027dd/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="909027dd-3eda-4810-b443-65d4aa3fd8ed"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5181c149-c233-4159-b41d-8bdbbd1eb482"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.752.19"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/8e4c10de-6a5b-4b62-8d9a-f523f6733d0d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/6fe56858-4f22-415a-b83f-89cc052d0f6a"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8e4c10de-6a5b-4b62-8d9a-f523f6733d0d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6fe56858-4f22-415a-b83f-89cc052d0f6a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Darren Deeds"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/input.xml new file mode 100644 index 00000000..8e97c969 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="0474ec05-ba5a-4e15-91d2-4e28a0729785"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0df78f1b-8930-4f2f-8c92-3a8659f694ff"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.769.65"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#0df78f1b-8930-4f2f-8c92-3a8659f694ff"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/log.txt new file mode 100644 index 00000000..d069fb52 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/2f13192f-d531-4025-b95b-f7d6115564be*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/2f13192f-d531-4025-b95b-f7d6115564be*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/2f13192f-d531-4025-b95b-f7d6115564be*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/output.json new file mode 100644 index 00000000..373d6882 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "a7854089-258f-453b-bed4-de8af4095351", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "2f13192f-d531-4025-b95b-f7d6115564be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.769.65" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/8336ebe0-7c15-456a-b8e3-d600ef4daaed" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/cacc190a-d354-42ad-becc-0f496e44bdf3" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8336ebe0-7c15-456a-b8e3-d600ef4daaed", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "cacc190a-d354-42ad-becc-0f496e44bdf3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Tom A. Toe" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/output.xml new file mode 100644 index 00000000..315ab2bd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_a7854089/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a7854089-258f-453b-bed4-de8af4095351"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="2f13192f-d531-4025-b95b-f7d6115564be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.769.65"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/8336ebe0-7c15-456a-b8e3-d600ef4daaed"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/cacc190a-d354-42ad-becc-0f496e44bdf3"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8336ebe0-7c15-456a-b8e3-d600ef4daaed"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cacc190a-d354-42ad-becc-0f496e44bdf3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Tom A. Toe"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/input.xml new file mode 100644 index 00000000..5e60cdc0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="948d7373-be34-40f7-a1de-a4407bc4ccf3"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="98670442-3d6e-4199-a1a7-45011daa2d53"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.743.46"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#98670442-3d6e-4199-a1a7-45011daa2d53"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/log.txt new file mode 100644 index 00000000..af4bbcc0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5dbdbe00-8463-4c6f-bf3d-4ea9775baed0*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5dbdbe00-8463-4c6f-bf3d-4ea9775baed0*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5dbdbe00-8463-4c6f-bf3d-4ea9775baed0*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/output.json new file mode 100644 index 00000000..f9ad47ff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "d71fba4b-dec6-4dc5-a6f2-1e068f480440", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5dbdbe00-8463-4c6f-bf3d-4ea9775baed0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.743.46" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/baca2cb9-e31f-4246-a5de-e87e9536f82f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/0298daee-1a1e-4e47-835d-3a9f662de25e" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "baca2cb9-e31f-4246-a5de-e87e9536f82f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "0298daee-1a1e-4e47-835d-3a9f662de25e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Chuck Roast" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/output.xml new file mode 100644 index 00000000..548745db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d71fba4b/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d71fba4b-dec6-4dc5-a6f2-1e068f480440"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5dbdbe00-8463-4c6f-bf3d-4ea9775baed0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.743.46"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/baca2cb9-e31f-4246-a5de-e87e9536f82f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/0298daee-1a1e-4e47-835d-3a9f662de25e"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="baca2cb9-e31f-4246-a5de-e87e9536f82f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0298daee-1a1e-4e47-835d-3a9f662de25e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Chuck Roast"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/input.xml new file mode 100644 index 00000000..1ce4c23c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7757f253-f86d-4bc3-81a9-c85aef58ead6"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86ea5ae2-bb11-4e5d-827e-f2ca5dcb291b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="93081505"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.994.37"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#86ea5ae2-bb11-4e5d-827e-f2ca5dcb291b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/log.txt new file mode 100644 index 00000000..7e1e3f39 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/52b16dbe-e5aa-4f86-a967-1933941669d3*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/52b16dbe-e5aa-4f86-a967-1933941669d3*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/52b16dbe-e5aa-4f86-a967-1933941669d3*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/output.json new file mode 100644 index 00000000..9a7be7ca --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "d8468bee-bc16-4625-9fb9-7016bcb976f9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "52b16dbe-e5aa-4f86-a967-1933941669d3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.994.37" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/714f96d9-66d1-4bf1-ac22-ae05690261d6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ef111b3b-c9fc-4e33-be6d-e12e86f11673" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "714f96d9-66d1-4bf1-ac22-ae05690261d6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "93081505" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ef111b3b-c9fc-4e33-be6d-e12e86f11673", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Dusty Sandmann" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/output.xml new file mode 100644 index 00000000..f89c8960 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_d8468bee/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d8468bee-bc16-4625-9fb9-7016bcb976f9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="52b16dbe-e5aa-4f86-a967-1933941669d3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.994.37"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/714f96d9-66d1-4bf1-ac22-ae05690261d6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ef111b3b-c9fc-4e33-be6d-e12e86f11673"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="714f96d9-66d1-4bf1-ac22-ae05690261d6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="93081505"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ef111b3b-c9fc-4e33-be6d-e12e86f11673"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Dusty Sandmann"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/input.xml new file mode 100644 index 00000000..2edf3102 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="15850937-431a-4ddd-a704-f3dc368e8043"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.766.74"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/log.txt new file mode 100644 index 00000000..98b5899a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/e33b312d-3dff-43dd-8e0e-13102d756ab6*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/e33b312d-3dff-43dd-8e0e-13102d756ab6*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/e33b312d-3dff-43dd-8e0e-13102d756ab6*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/output.json new file mode 100644 index 00000000..0753c242 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "e3418508-6823-48c9-aaa8-3fdea4e42467", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "e33b312d-3dff-43dd-8e0e-13102d756ab6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.766.74" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/627df8c3-c581-4698-a865-419fc31bf0cb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/563416ed-f7d7-4f04-821d-730139486d42" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "627df8c3-c581-4698-a865-419fc31bf0cb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "563416ed-f7d7-4f04-821d-730139486d42", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Lon Moore" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/output.xml new file mode 100644 index 00000000..c488a2e9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_e3418508/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e3418508-6823-48c9-aaa8-3fdea4e42467"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="e33b312d-3dff-43dd-8e0e-13102d756ab6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.766.74"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/627df8c3-c581-4698-a865-419fc31bf0cb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/563416ed-f7d7-4f04-821d-730139486d42"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="627df8c3-c581-4698-a865-419fc31bf0cb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="563416ed-f7d7-4f04-821d-730139486d42"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Lon Moore"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/input.xml new file mode 100644 index 00000000..44b64ccc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="2f0c013c-9dc0-4980-bb8d-3409a7209212"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="61fbee44-f40d-4d40-a5a1-d7f50ef7bade"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.757.04"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#61fbee44-f40d-4d40-a5a1-d7f50ef7bade"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/log.txt new file mode 100644 index 00000000..8576262a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/a10521f6-7fc5-4297-bca3-3c1541d86d1b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/a10521f6-7fc5-4297-bca3-3c1541d86d1b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/a10521f6-7fc5-4297-bca3-3c1541d86d1b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/output.json new file mode 100644 index 00000000..c2a22822 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "f1564ba7-54d7-454d-8971-8a54e3bcf2b9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "a10521f6-7fc5-4297-bca3-3c1541d86d1b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.757.04" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/82a98e41-8f47-4b32-bd06-9cbfdc1870af" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/07b67d7d-4149-4611-9503-9bc00ae59866" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "82a98e41-8f47-4b32-bd06-9cbfdc1870af", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "07b67d7d-4149-4611-9503-9bc00ae59866", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jack Dupp" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/output.xml new file mode 100644 index 00000000..dd30b2aa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_f1564ba7/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f1564ba7-54d7-454d-8971-8a54e3bcf2b9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a10521f6-7fc5-4297-bca3-3c1541d86d1b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.757.04"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/82a98e41-8f47-4b32-bd06-9cbfdc1870af"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/07b67d7d-4149-4611-9503-9bc00ae59866"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="82a98e41-8f47-4b32-bd06-9cbfdc1870af"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="07b67d7d-4149-4611-9503-9bc00ae59866"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jack Dupp"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/input.xml new file mode 100644 index 00000000..b9114e7e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="9e291e49-64ce-42ae-8fed-ea765c9b3f9a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5088d1cf-46f8-4c89-b3c7-1fbda757aadb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.751.22"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5088d1cf-46f8-4c89-b3c7-1fbda757aadb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/log.txt new file mode 100644 index 00000000..852fa1c0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/ec811acd-cd80-4523-83ac-dea90e7516c7*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/ec811acd-cd80-4523-83ac-dea90e7516c7*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/ec811acd-cd80-4523-83ac-dea90e7516c7*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/output.json new file mode 100644 index 00000000..5bd85036 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "fa474a74-4244-4a8c-9baf-b1798814f773", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "ec811acd-cd80-4523-83ac-dea90e7516c7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.751.22" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/bcbbc11e-5301-4e8f-9b33-78716864df1b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/5a9f4694-f1dc-4e7e-b2bb-cbb259246d38" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bcbbc11e-5301-4e8f-9b33-78716864df1b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "5a9f4694-f1dc-4e7e-b2bb-cbb259246d38", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Winnie Bago" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/output.xml new file mode 100644 index 00000000..4ef952d9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/008_Request_MedicationDispense_fa474a74/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fa474a74-4244-4a8c-9baf-b1798814f773"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ec811acd-cd80-4523-83ac-dea90e7516c7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.751.22"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/bcbbc11e-5301-4e8f-9b33-78716864df1b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/5a9f4694-f1dc-4e7e-b2bb-cbb259246d38"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bcbbc11e-5301-4e8f-9b33-78716864df1b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5a9f4694-f1dc-4e7e-b2bb-cbb259246d38"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Winnie Bago"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/input.xml new file mode 100644 index 00000000..e1af2c1b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5b32c036-6168-437f-b44c-4b0dbd12a9d9"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a6c17c6c-f17b-4c17-bd92-9db6b49a9848"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.760.92"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#a6c17c6c-f17b-4c17-bd92-9db6b49a9848"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/log.txt new file mode 100644 index 00000000..1dd0517b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/692e8809-8ca3-4c69-a45c-eabfbec1e56e*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/692e8809-8ca3-4c69-a45c-eabfbec1e56e*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/692e8809-8ca3-4c69-a45c-eabfbec1e56e*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/output.json new file mode 100644 index 00000000..fde86c3f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "0159fb4f-20e9-4517-9efc-06787501bf1a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "692e8809-8ca3-4c69-a45c-eabfbec1e56e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.760.92" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/429472a2-c6bd-4914-ab41-a2c17fe86fc9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/001e1f7b-6a12-4f8c-b190-472bee2c6eff" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "429472a2-c6bd-4914-ab41-a2c17fe86fc9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "001e1f7b-6a12-4f8c-b190-472bee2c6eff", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rose Bush" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/output.xml new file mode 100644 index 00000000..b735a726 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_0159fb4f/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0159fb4f-20e9-4517-9efc-06787501bf1a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="692e8809-8ca3-4c69-a45c-eabfbec1e56e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.760.92"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/429472a2-c6bd-4914-ab41-a2c17fe86fc9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/001e1f7b-6a12-4f8c-b190-472bee2c6eff"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="429472a2-c6bd-4914-ab41-a2c17fe86fc9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="001e1f7b-6a12-4f8c-b190-472bee2c6eff"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rose Bush"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/input.xml new file mode 100644 index 00000000..095fdf46 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f9f80ea9-6ae4-4916-877e-1707094b808a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="69edbee6-3e1f-451f-b960-53a10c879038"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.768.68"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#69edbee6-3e1f-451f-b960-53a10c879038"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/log.txt new file mode 100644 index 00000000..d67bb93a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5eaf8681-b078-4dc0-83f1-f661b78da84b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5eaf8681-b078-4dc0-83f1-f661b78da84b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5eaf8681-b078-4dc0-83f1-f661b78da84b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/output.json new file mode 100644 index 00000000..487b54cd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "1473f940-40b2-4d79-ac10-a7a7765f2a90", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5eaf8681-b078-4dc0-83f1-f661b78da84b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.768.68" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/32d9bf4d-8c4f-418e-8983-d7739c511e48" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/647c3af0-88ba-4f8d-a92d-f0265afb25cf" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "32d9bf4d-8c4f-418e-8983-d7739c511e48", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "647c3af0-88ba-4f8d-a92d-f0265afb25cf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ricky T. Ladder" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/output.xml new file mode 100644 index 00000000..8d01bf7a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1473f940/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1473f940-40b2-4d79-ac10-a7a7765f2a90"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5eaf8681-b078-4dc0-83f1-f661b78da84b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.768.68"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/32d9bf4d-8c4f-418e-8983-d7739c511e48"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/647c3af0-88ba-4f8d-a92d-f0265afb25cf"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="32d9bf4d-8c4f-418e-8983-d7739c511e48"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="647c3af0-88ba-4f8d-a92d-f0265afb25cf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ricky T. Ladder"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/input.xml new file mode 100644 index 00000000..4bcccf12 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8f932795-0cfc-4720-ac9b-7bfca4c1a280"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5e8317e7-deaf-4d42-bb68-76fdd13709ab"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.463.677.05"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5e8317e7-deaf-4d42-bb68-76fdd13709ab"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-13"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/log.txt new file mode 100644 index 00000000..df93b573 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1f54c022-2e26-43e1-af0f-ee78e9dbccc7*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1f54c022-2e26-43e1-af0f-ee78e9dbccc7*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1f54c022-2e26-43e1-af0f-ee78e9dbccc7*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/output.json new file mode 100644 index 00000000..4deeb206 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "1f42e5b7-2ff9-45f9-9b26-f17e499d2f98", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1f54c022-2e26-43e1-af0f-ee78e9dbccc7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.463.677.05" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/6e660f8b-f884-4c7c-8ce4-79e4fd123b3f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "T046142499" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/eac390c8-ba32-4a9f-9654-73806e38d7e5" + } + } ], + "whenHandedOver": "2024-02-13" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6e660f8b-f884-4c7c-8ce4-79e4fd123b3f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "eac390c8-ba32-4a9f-9654-73806e38d7e5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Al B. Tross" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/output.xml new file mode 100644 index 00000000..e7b5adf5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_1f42e5b7/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1f42e5b7-2ff9-45f9-9b26-f17e499d2f98"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1f54c022-2e26-43e1-af0f-ee78e9dbccc7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.463.677.05"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/6e660f8b-f884-4c7c-8ce4-79e4fd123b3f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/eac390c8-ba32-4a9f-9654-73806e38d7e5"/> + </actor> + </performer> + <whenHandedOver value="2024-02-13"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6e660f8b-f884-4c7c-8ce4-79e4fd123b3f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="eac390c8-ba32-4a9f-9654-73806e38d7e5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Al B. Tross"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/input.xml new file mode 100644 index 00000000..554d3af8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="efe8874f-6c9f-487c-b820-d8100209f56a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e4d32334-507c-4f9c-9111-c66d065c2cad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10642981"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.549.98"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#e4d32334-507c-4f9c-9111-c66d065c2cad"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/log.txt new file mode 100644 index 00000000..ce9e9589 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5fc4a0c4-e8f0-495b-bc29-df58c3e6bb71*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5fc4a0c4-e8f0-495b-bc29-df58c3e6bb71*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5fc4a0c4-e8f0-495b-bc29-df58c3e6bb71*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/output.json new file mode 100644 index 00000000..87c22c0a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "2789ac6b-5519-445e-9de6-e3fec49b103e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5fc4a0c4-e8f0-495b-bc29-df58c3e6bb71", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.549.98" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/ea6f83a5-a6fe-4fd1-a9ba-92531ae1479e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/1bb02171-c4c4-46f7-a091-a938a60dabb7" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ea6f83a5-a6fe-4fd1-a9ba-92531ae1479e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10642981" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "1bb02171-c4c4-46f7-a091-a938a60dabb7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rocky Mountain" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/output.xml new file mode 100644 index 00000000..365495fd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_2789ac6b/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2789ac6b-5519-445e-9de6-e3fec49b103e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5fc4a0c4-e8f0-495b-bc29-df58c3e6bb71"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.549.98"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/ea6f83a5-a6fe-4fd1-a9ba-92531ae1479e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/1bb02171-c4c4-46f7-a091-a938a60dabb7"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ea6f83a5-a6fe-4fd1-a9ba-92531ae1479e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10642981"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1bb02171-c4c4-46f7-a091-a938a60dabb7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rocky Mountain"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/input.xml new file mode 100644 index 00000000..4410384c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c916d235-c3b9-46e1-bdae-d14c3ac1df92"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7a4edde1-5a03-4b1c-8b27-33effeca6295"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.759.95"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#7a4edde1-5a03-4b1c-8b27-33effeca6295"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/log.txt new file mode 100644 index 00000000..bfd9bbc1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/899df179-1c49-410f-9ee8-3d4262d6b16c*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/899df179-1c49-410f-9ee8-3d4262d6b16c*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/899df179-1c49-410f-9ee8-3d4262d6b16c*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/output.json new file mode 100644 index 00000000..33334ac1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "305be6c9-1651-44cf-9f2d-a86ebc9ba328", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "899df179-1c49-410f-9ee8-3d4262d6b16c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.759.95" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/84057297-c251-4e83-a750-3a7eb91395c0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/35114a29-9692-4573-af82-6d2c6c5e29d7" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "84057297-c251-4e83-a750-3a7eb91395c0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "35114a29-9692-4573-af82-6d2c6c5e29d7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Cammie Sole" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/output.xml new file mode 100644 index 00000000..c1421e4c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_305be6c9/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="305be6c9-1651-44cf-9f2d-a86ebc9ba328"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="899df179-1c49-410f-9ee8-3d4262d6b16c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.759.95"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/84057297-c251-4e83-a750-3a7eb91395c0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/35114a29-9692-4573-af82-6d2c6c5e29d7"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="84057297-c251-4e83-a750-3a7eb91395c0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="35114a29-9692-4573-af82-6d2c6c5e29d7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Cammie Sole"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/input.xml new file mode 100644 index 00000000..618ca5e1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="11863590-3c0b-403c-85fb-5ec91ac10bd9"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="15a37998-7cf6-43ed-8d6f-80c931464059"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="25582871"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.541.25"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#15a37998-7cf6-43ed-8d6f-80c931464059"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/log.txt new file mode 100644 index 00000000..2de94eae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/4c7d3215-2294-4893-940f-f91d8add93fe*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/4c7d3215-2294-4893-940f-f91d8add93fe*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/4c7d3215-2294-4893-940f-f91d8add93fe*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/output.json new file mode 100644 index 00000000..a3623c4e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "31f38335-000d-4d7c-b4ee-1331abc65707", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "4c7d3215-2294-4893-940f-f91d8add93fe", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.541.25" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f298c8bb-c7f1-4a41-9316-a77ebbeb6b1d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/e96c0836-6799-432f-bbff-73f7bd3beed4" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f298c8bb-c7f1-4a41-9316-a77ebbeb6b1d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "25582871" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "e96c0836-6799-432f-bbff-73f7bd3beed4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ken Oppenner" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/output.xml new file mode 100644 index 00000000..f06580f1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_31f38335/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="31f38335-000d-4d7c-b4ee-1331abc65707"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4c7d3215-2294-4893-940f-f91d8add93fe"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.541.25"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f298c8bb-c7f1-4a41-9316-a77ebbeb6b1d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/e96c0836-6799-432f-bbff-73f7bd3beed4"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f298c8bb-c7f1-4a41-9316-a77ebbeb6b1d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="25582871"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e96c0836-6799-432f-bbff-73f7bd3beed4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ken Oppenner"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/input.xml new file mode 100644 index 00000000..cc9c9f54 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="30b0bdfb-b7dc-43d2-9fd0-bd420deaf651"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="59b53a09-4763-4725-84a9-481f0a2cdb00"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="24025068"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.534.46"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#59b53a09-4763-4725-84a9-481f0a2cdb00"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/log.txt new file mode 100644 index 00000000..fe752585 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/622dc719-82e1-42c9-ad38-c2e544150be4*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/622dc719-82e1-42c9-ad38-c2e544150be4*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/622dc719-82e1-42c9-ad38-c2e544150be4*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/output.json new file mode 100644 index 00000000..a8618f39 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "41e06295-5ccc-4ae3-a738-a0e6030003da", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "622dc719-82e1-42c9-ad38-c2e544150be4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.534.46" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/9963d024-ae2f-4565-85c7-34008fbca834" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/eaeb619e-d7fd-4435-93b0-2904176b5a8d" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9963d024-ae2f-4565-85c7-34008fbca834", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "24025068" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "eaeb619e-d7fd-4435-93b0-2904176b5a8d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Marty Graw" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/output.xml new file mode 100644 index 00000000..636a9b8a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_41e06295/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="41e06295-5ccc-4ae3-a738-a0e6030003da"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="622dc719-82e1-42c9-ad38-c2e544150be4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.534.46"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/9963d024-ae2f-4565-85c7-34008fbca834"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/eaeb619e-d7fd-4435-93b0-2904176b5a8d"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9963d024-ae2f-4565-85c7-34008fbca834"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="24025068"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="eaeb619e-d7fd-4435-93b0-2904176b5a8d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Marty Graw"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/input.xml new file mode 100644 index 00000000..0ccb27bc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f671e4a6-2cb5-4d18-b04a-226202ae8eb1"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="979f9f1b-d9d5-4784-9c1e-0b1abe22d2ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="48094708"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.996.31"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#979f9f1b-d9d5-4784-9c1e-0b1abe22d2ea"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/log.txt new file mode 100644 index 00000000..bee77e10 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1c0a28ad-ced0-4413-b22e-04c4a9ed27a8*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1c0a28ad-ced0-4413-b22e-04c4a9ed27a8*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1c0a28ad-ced0-4413-b22e-04c4a9ed27a8*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/output.json new file mode 100644 index 00000000..3ebb391e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "46b4d2a7-f2ba-4b1a-ad14-1731d827d643", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1c0a28ad-ced0-4413-b22e-04c4a9ed27a8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.996.31" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f53c0907-3a40-42ec-848f-48ceb7906047" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/24fe8926-4666-46df-bda7-375b359cf871" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f53c0907-3a40-42ec-848f-48ceb7906047", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "48094708" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "24fe8926-4666-46df-bda7-375b359cf871", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Barry D'Alive" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/output.xml new file mode 100644 index 00000000..c980cad3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_46b4d2a7/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="46b4d2a7-f2ba-4b1a-ad14-1731d827d643"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1c0a28ad-ced0-4413-b22e-04c4a9ed27a8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.996.31"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f53c0907-3a40-42ec-848f-48ceb7906047"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/24fe8926-4666-46df-bda7-375b359cf871"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f53c0907-3a40-42ec-848f-48ceb7906047"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="48094708"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="24fe8926-4666-46df-bda7-375b359cf871"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Barry D'Alive"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/input.xml new file mode 100644 index 00000000..6e5c0fa2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="efd6ebf9-5c9a-4877-ac42-8cb984d94a39"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="06e192d7-a295-4572-8824-2270041cd3d0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64184374"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.527.67"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#06e192d7-a295-4572-8824-2270041cd3d0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/log.txt new file mode 100644 index 00000000..ee8fb9e9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/a85b131d-c51f-4ad4-96ef-17e3db45db4d*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/a85b131d-c51f-4ad4-96ef-17e3db45db4d*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/a85b131d-c51f-4ad4-96ef-17e3db45db4d*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/output.json new file mode 100644 index 00000000..b32f15e6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "5113c40f-7095-412f-a528-68764428f802", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "a85b131d-c51f-4ad4-96ef-17e3db45db4d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.527.67" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/016f8628-5eb0-4096-a03b-619ac3c6f97c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/166848ed-fc7f-4d86-ba89-068022eea44b" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "016f8628-5eb0-4096-a03b-619ac3c6f97c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "64184374" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "166848ed-fc7f-4d86-ba89-068022eea44b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jane Linkfence" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/output.xml new file mode 100644 index 00000000..a089251e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_5113c40f/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5113c40f-7095-412f-a528-68764428f802"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a85b131d-c51f-4ad4-96ef-17e3db45db4d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.527.67"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/016f8628-5eb0-4096-a03b-619ac3c6f97c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/166848ed-fc7f-4d86-ba89-068022eea44b"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="016f8628-5eb0-4096-a03b-619ac3c6f97c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64184374"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="166848ed-fc7f-4d86-ba89-068022eea44b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jane Linkfence"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/input.xml new file mode 100644 index 00000000..f15ad6aa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="cc07c2ac-204c-480e-ba03-09268cab4c22"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="72e068f7-731f-4930-8f3f-60d36e210a64"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="74302188"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.531.55"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#72e068f7-731f-4930-8f3f-60d36e210a64"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/log.txt new file mode 100644 index 00000000..d0c9e9d5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/3acfbf25-f75f-4263-9e22-ba6c3fecbb2c*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/3acfbf25-f75f-4263-9e22-ba6c3fecbb2c*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/3acfbf25-f75f-4263-9e22-ba6c3fecbb2c*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/output.json new file mode 100644 index 00000000..3322d8c4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "59d671a6-8a13-4a30-a4d8-b1ddb814dac4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "3acfbf25-f75f-4263-9e22-ba6c3fecbb2c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.531.55" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/efc8d9a8-695d-4bd6-9a18-6a1d6c4a2fa4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/057d3183-8df0-4527-893c-ae238fc47d13" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "efc8d9a8-695d-4bd6-9a18-6a1d6c4a2fa4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "74302188" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "057d3183-8df0-4527-893c-ae238fc47d13", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Robin Money" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/output.xml new file mode 100644 index 00000000..adf2c4ec --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_59d671a6/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="59d671a6-8a13-4a30-a4d8-b1ddb814dac4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3acfbf25-f75f-4263-9e22-ba6c3fecbb2c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.531.55"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/efc8d9a8-695d-4bd6-9a18-6a1d6c4a2fa4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/057d3183-8df0-4527-893c-ae238fc47d13"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="efc8d9a8-695d-4bd6-9a18-6a1d6c4a2fa4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="74302188"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="057d3183-8df0-4527-893c-ae238fc47d13"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Robin Money"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/input.xml new file mode 100644 index 00000000..cf0cd819 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="800e0802-39d4-4874-9383-336c4fd98ae7"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1f16baef-810f-43e9-91e9-546c4dc027b6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="46260462"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.995.34"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#1f16baef-810f-43e9-91e9-546c4dc027b6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/log.txt new file mode 100644 index 00000000..44ab98e3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/dc3ed2a9-f875-46f4-9620-2ae5d3c5c3aa*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/dc3ed2a9-f875-46f4-9620-2ae5d3c5c3aa*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/dc3ed2a9-f875-46f4-9620-2ae5d3c5c3aa*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/output.json new file mode 100644 index 00000000..e56128e5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "622316fe-108f-4337-98a2-a381a20437bb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "dc3ed2a9-f875-46f4-9620-2ae5d3c5c3aa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.995.34" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b11c82bc-0edb-4dc1-b123-ca96041ae220" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/40ee5812-60e6-4913-a0f2-9d2b4a58e7ec" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b11c82bc-0edb-4dc1-b123-ca96041ae220", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "46260462" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "40ee5812-60e6-4913-a0f2-9d2b4a58e7ec", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Marlon Fisher" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/output.xml new file mode 100644 index 00000000..75a41467 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_622316fe/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="622316fe-108f-4337-98a2-a381a20437bb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dc3ed2a9-f875-46f4-9620-2ae5d3c5c3aa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.995.34"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b11c82bc-0edb-4dc1-b123-ca96041ae220"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/40ee5812-60e6-4913-a0f2-9d2b4a58e7ec"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b11c82bc-0edb-4dc1-b123-ca96041ae220"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="46260462"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="40ee5812-60e6-4913-a0f2-9d2b4a58e7ec"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Marlon Fisher"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/input.xml new file mode 100644 index 00000000..7afd51d9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="88ceb1e2-b288-490e-9ccc-30a88e12214c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4e2900dc-cee2-4343-84cd-a07347018b68"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.763.83"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#4e2900dc-cee2-4343-84cd-a07347018b68"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/log.txt new file mode 100644 index 00000000..6e29d378 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/881cfc4b-5dc9-49f3-9fe3-f3b9a2a425be*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/881cfc4b-5dc9-49f3-9fe3-f3b9a2a425be*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/881cfc4b-5dc9-49f3-9fe3-f3b9a2a425be*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/output.json new file mode 100644 index 00000000..fc5e108a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "69d3fc0d-565e-4408-b839-7f310e808dd5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "881cfc4b-5dc9-49f3-9fe3-f3b9a2a425be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.763.83" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b0111c67-cee0-40c7-8317-fca9de3dd3cf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/907ed043-c1ba-447e-93d0-0ada1686bac1" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b0111c67-cee0-40c7-8317-fca9de3dd3cf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "907ed043-c1ba-447e-93d0-0ada1686bac1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Candy Baskett" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/output.xml new file mode 100644 index 00000000..49920e3f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_69d3fc0d/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="69d3fc0d-565e-4408-b839-7f310e808dd5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="881cfc4b-5dc9-49f3-9fe3-f3b9a2a425be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.763.83"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b0111c67-cee0-40c7-8317-fca9de3dd3cf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/907ed043-c1ba-447e-93d0-0ada1686bac1"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b0111c67-cee0-40c7-8317-fca9de3dd3cf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="907ed043-c1ba-447e-93d0-0ada1686bac1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Candy Baskett"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/input.xml new file mode 100644 index 00000000..197d98fa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="89b0bda6-537d-4770-a30b-df7c80487c62"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7570cb81-1f77-482a-9e97-e370734ae496"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09921210"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.553.86"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#7570cb81-1f77-482a-9e97-e370734ae496"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/log.txt new file mode 100644 index 00000000..cf94922a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/13e7780f-6980-49e6-838c-21c259d1ea80*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/13e7780f-6980-49e6-838c-21c259d1ea80*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/13e7780f-6980-49e6-838c-21c259d1ea80*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/output.json new file mode 100644 index 00000000..a14dad1f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "87e0742e-cf60-4056-bffe-45c6358e2fa3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "13e7780f-6980-49e6-838c-21c259d1ea80", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.553.86" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/4b3714a7-196f-4ca3-83b1-00b1328831c6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/119ec027-0f26-4164-a8dd-ffaecf4c3090" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4b3714a7-196f-4ca3-83b1-00b1328831c6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09921210" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "119ec027-0f26-4164-a8dd-ffaecf4c3090", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rusty Carr" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/output.xml new file mode 100644 index 00000000..594a007c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_87e0742e/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="87e0742e-cf60-4056-bffe-45c6358e2fa3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="13e7780f-6980-49e6-838c-21c259d1ea80"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.553.86"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/4b3714a7-196f-4ca3-83b1-00b1328831c6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/119ec027-0f26-4164-a8dd-ffaecf4c3090"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4b3714a7-196f-4ca3-83b1-00b1328831c6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09921210"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="119ec027-0f26-4164-a8dd-ffaecf4c3090"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rusty Carr"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/input.xml new file mode 100644 index 00000000..b479b462 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="e8fc0f90-951e-4686-823e-85a862cf9457"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fb62fc7a-3396-4951-9a81-a3cb854b4492"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.467.748.14"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#fb62fc7a-3396-4951-9a81-a3cb854b4492"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="C020222113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-13"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/log.txt new file mode 100644 index 00000000..90225507 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/daf0812b-d8ba-49ad-82ed-47da73042c44*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/daf0812b-d8ba-49ad-82ed-47da73042c44*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/daf0812b-d8ba-49ad-82ed-47da73042c44*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/output.json new file mode 100644 index 00000000..5453db8d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "8dcafef9-25b9-4ea4-95cc-17c2ddbbb8cc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "daf0812b-d8ba-49ad-82ed-47da73042c44", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.467.748.14" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/5d310ba4-f0a7-414b-b686-85356a3d6177" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "C020222113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c933b4a3-16c2-4608-a5f7-c27f53f297b1" + } + } ], + "whenHandedOver": "2024-02-13" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5d310ba4-f0a7-414b-b686-85356a3d6177", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c933b4a3-16c2-4608-a5f7-c27f53f297b1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Freida Convict" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/output.xml new file mode 100644 index 00000000..52d32954 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_8dcafef9/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8dcafef9-25b9-4ea4-95cc-17c2ddbbb8cc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="daf0812b-d8ba-49ad-82ed-47da73042c44"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.467.748.14"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/5d310ba4-f0a7-414b-b686-85356a3d6177"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="C020222113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c933b4a3-16c2-4608-a5f7-c27f53f297b1"/> + </actor> + </performer> + <whenHandedOver value="2024-02-13"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5d310ba4-f0a7-414b-b686-85356a3d6177"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c933b4a3-16c2-4608-a5f7-c27f53f297b1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Freida Convict"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/input.xml new file mode 100644 index 00000000..3bbc626d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="95b01d68-59fe-4648-a17e-03bb0e033718"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="623d572c-765b-4bf1-bcd4-6169a20a0a87"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16833239"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.550.95"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#623d572c-765b-4bf1-bcd4-6169a20a0a87"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/log.txt new file mode 100644 index 00000000..ffa286a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/cccef013-a40f-43a2-bc8a-bae61486c2a8*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/cccef013-a40f-43a2-bc8a-bae61486c2a8*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/cccef013-a40f-43a2-bc8a-bae61486c2a8*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/output.json new file mode 100644 index 00000000..b1b86df6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "a6f5fbec-d552-4ad5-8e1c-effcf08236a5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "cccef013-a40f-43a2-bc8a-bae61486c2a8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.550.95" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/8b699a08-f6cc-4793-ba18-71d812b6b55b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/8d4a470a-d62a-4021-9141-9f1809feb2bb" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8b699a08-f6cc-4793-ba18-71d812b6b55b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16833239" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "8d4a470a-d62a-4021-9141-9f1809feb2bb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rick Kleiner" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/output.xml new file mode 100644 index 00000000..75fbfabf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a6f5fbec/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a6f5fbec-d552-4ad5-8e1c-effcf08236a5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="cccef013-a40f-43a2-bc8a-bae61486c2a8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.550.95"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/8b699a08-f6cc-4793-ba18-71d812b6b55b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/8d4a470a-d62a-4021-9141-9f1809feb2bb"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8b699a08-f6cc-4793-ba18-71d812b6b55b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16833239"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8d4a470a-d62a-4021-9141-9f1809feb2bb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rick Kleiner"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/input.xml new file mode 100644 index 00000000..4d9d9f1c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="2bd690cf-cf36-4086-8778-39ba9ef7813a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4c7680d4-c589-4ca4-b6d6-bf1a7e1310a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="22477205"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.532.52"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#4c7680d4-c589-4ca4-b6d6-bf1a7e1310a9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/log.txt new file mode 100644 index 00000000..e7687900 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/8fc9ab16-8927-4558-aa8b-b90d5cd8c5ad*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/8fc9ab16-8927-4558-aa8b-b90d5cd8c5ad*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/8fc9ab16-8927-4558-aa8b-b90d5cd8c5ad*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/output.json new file mode 100644 index 00000000..efaf75f1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "a86d9701-63b8-4fb5-92ac-c556864f55f8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "8fc9ab16-8927-4558-aa8b-b90d5cd8c5ad", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.532.52" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/e86fff12-506e-4b27-a8cd-7c63538093b8" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/3ce324ff-4fba-4f9f-81f6-bce03a3f85db" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e86fff12-506e-4b27-a8cd-7c63538093b8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "22477205" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "3ce324ff-4fba-4f9f-81f6-bce03a3f85db", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Macon Paine" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/output.xml new file mode 100644 index 00000000..12ea42c6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_a86d9701/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a86d9701-63b8-4fb5-92ac-c556864f55f8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8fc9ab16-8927-4558-aa8b-b90d5cd8c5ad"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.532.52"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/e86fff12-506e-4b27-a8cd-7c63538093b8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/3ce324ff-4fba-4f9f-81f6-bce03a3f85db"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e86fff12-506e-4b27-a8cd-7c63538093b8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="22477205"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3ce324ff-4fba-4f9f-81f6-bce03a3f85db"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Macon Paine"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/input.xml new file mode 100644 index 00000000..8acadf67 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4dbd54be-687b-4aca-bd75-ea37ab3ad225"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="17218abd-f3d7-4770-82e6-0d2a65c1463f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.767.71"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#17218abd-f3d7-4770-82e6-0d2a65c1463f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/log.txt new file mode 100644 index 00000000..e9d2e956 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1c526c5a-f81c-4607-95e0-bc5eb1f9779d*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1c526c5a-f81c-4607-95e0-bc5eb1f9779d*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1c526c5a-f81c-4607-95e0-bc5eb1f9779d*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/output.json new file mode 100644 index 00000000..47ef5848 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "c30c0754-1df3-4a74-921b-6b3b8b8dfdcd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1c526c5a-f81c-4607-95e0-bc5eb1f9779d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.767.71" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f62ac42a-37d5-4cf4-b077-4fd136974aa3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f5d6b70e-74e2-494f-926c-3a3523709b90" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f62ac42a-37d5-4cf4-b077-4fd136974aa3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f5d6b70e-74e2-494f-926c-3a3523709b90", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ken Oppenner" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/output.xml new file mode 100644 index 00000000..92c0a36b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c30c0754/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c30c0754-1df3-4a74-921b-6b3b8b8dfdcd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1c526c5a-f81c-4607-95e0-bc5eb1f9779d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.767.71"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f62ac42a-37d5-4cf4-b077-4fd136974aa3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f5d6b70e-74e2-494f-926c-3a3523709b90"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f62ac42a-37d5-4cf4-b077-4fd136974aa3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f5d6b70e-74e2-494f-926c-3a3523709b90"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ken Oppenner"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/input.xml new file mode 100644 index 00000000..2fd55595 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f64fd7b4-8720-4986-a3c3-11892afa2267"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="84264572"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.533.49"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/log.txt new file mode 100644 index 00000000..1f3c9f8a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/ca683361-26af-4e93-9889-7adc28390616*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/ca683361-26af-4e93-9889-7adc28390616*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/ca683361-26af-4e93-9889-7adc28390616*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/output.json new file mode 100644 index 00000000..26cf2755 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "c48e8331-3bda-4327-b5d9-4bcb759a20d3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "ca683361-26af-4e93-9889-7adc28390616", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.533.49" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/6a8a7e5c-3d20-4865-8d1a-66282716475c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/618efaf8-1bf2-44ab-b8c4-0826a09d15de" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6a8a7e5c-3d20-4865-8d1a-66282716475c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "84264572" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "618efaf8-1bf2-44ab-b8c4-0826a09d15de", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sue Yu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/output.xml new file mode 100644 index 00000000..642904ff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c48e8331/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c48e8331-3bda-4327-b5d9-4bcb759a20d3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ca683361-26af-4e93-9889-7adc28390616"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.533.49"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/6a8a7e5c-3d20-4865-8d1a-66282716475c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/618efaf8-1bf2-44ab-b8c4-0826a09d15de"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6a8a7e5c-3d20-4865-8d1a-66282716475c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="84264572"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="618efaf8-1bf2-44ab-b8c4-0826a09d15de"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sue Yu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/input.xml new file mode 100644 index 00000000..f16af8bc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7fd8a33d-d329-4918-8a44-b0ec7194eee0"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b6498800-1520-41a1-9444-5a12077bae9f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="72828845"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.552.89"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#b6498800-1520-41a1-9444-5a12077bae9f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/log.txt new file mode 100644 index 00000000..df967ec3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5c4c02f7-c57e-4c49-89d5-543edddeb044*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5c4c02f7-c57e-4c49-89d5-543edddeb044*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5c4c02f7-c57e-4c49-89d5-543edddeb044*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/output.json new file mode 100644 index 00000000..ef5e98f7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "c591a1e2-17e8-4465-90db-c8ba7d32a58d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5c4c02f7-c57e-4c49-89d5-543edddeb044", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.552.89" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/4534d1e6-4e68-4e25-a3e3-41cbaced349b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/b025a72b-a273-42cf-8ba2-d0df27741a5d" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4534d1e6-4e68-4e25-a3e3-41cbaced349b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "72828845" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "b025a72b-a273-42cf-8ba2-d0df27741a5d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Leo Tarred" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/output.xml new file mode 100644 index 00000000..afc07c06 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_c591a1e2/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c591a1e2-17e8-4465-90db-c8ba7d32a58d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5c4c02f7-c57e-4c49-89d5-543edddeb044"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.552.89"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/4534d1e6-4e68-4e25-a3e3-41cbaced349b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/b025a72b-a273-42cf-8ba2-d0df27741a5d"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4534d1e6-4e68-4e25-a3e3-41cbaced349b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="72828845"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b025a72b-a273-42cf-8ba2-d0df27741a5d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Leo Tarred"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/input.xml new file mode 100644 index 00000000..8175c677 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4a30f8e0-83f4-43ea-9d87-2eaa288b4bb9"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b153e444-f57a-4dc5-9ceb-f4518027accb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="89414303"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.554.83"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#b153e444-f57a-4dc5-9ceb-f4518027accb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/log.txt new file mode 100644 index 00000000..4c83f58f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/b7a28d32-4d14-4f63-83bf-f61d55be42c8*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/b7a28d32-4d14-4f63-83bf-f61d55be42c8*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/b7a28d32-4d14-4f63-83bf-f61d55be42c8*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/output.json new file mode 100644 index 00000000..5618808f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "cb07b09c-f119-46e8-9e79-47c4e4f969d3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "b7a28d32-4d14-4f63-83bf-f61d55be42c8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.554.83" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/1d78c156-1e3d-48a4-af41-9404a47b6718" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/72b066e1-6656-4fec-b4db-e36683d36836" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1d78c156-1e3d-48a4-af41-9404a47b6718", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "89414303" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "72b066e1-6656-4fec-b4db-e36683d36836", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Val Lay" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/output.xml new file mode 100644 index 00000000..3f753938 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_cb07b09c/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cb07b09c-f119-46e8-9e79-47c4e4f969d3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b7a28d32-4d14-4f63-83bf-f61d55be42c8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.554.83"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/1d78c156-1e3d-48a4-af41-9404a47b6718"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/72b066e1-6656-4fec-b4db-e36683d36836"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1d78c156-1e3d-48a4-af41-9404a47b6718"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="89414303"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="72b066e1-6656-4fec-b4db-e36683d36836"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Val Lay"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/input.xml new file mode 100644 index 00000000..b28f68f9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="91e812db-fdad-44f8-88e0-2d63004455c7"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a656e1d6-a37c-4753-9b26-b90bb0eddd30"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="94890460"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.529.61"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#a656e1d6-a37c-4753-9b26-b90bb0eddd30"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/log.txt new file mode 100644 index 00000000..9ae2f506 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/11dd4e6d-5f45-4606-b24d-06af0cbde788*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/11dd4e6d-5f45-4606-b24d-06af0cbde788*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/11dd4e6d-5f45-4606-b24d-06af0cbde788*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/output.json new file mode 100644 index 00000000..8afc79b5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "d1d6a359-1708-464f-a947-1d6dfa146572", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "11dd4e6d-5f45-4606-b24d-06af0cbde788", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.529.61" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f008b0b0-d60c-4ac4-b56c-62b3caf4a291" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/975b7055-e8f5-4cbe-804b-da9995ae3fb2" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f008b0b0-d60c-4ac4-b56c-62b3caf4a291", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "94890460" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "975b7055-e8f5-4cbe-804b-da9995ae3fb2", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Harry Pitts" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/output.xml new file mode 100644 index 00000000..1b5b36c4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_d1d6a359/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d1d6a359-1708-464f-a947-1d6dfa146572"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="11dd4e6d-5f45-4606-b24d-06af0cbde788"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.529.61"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f008b0b0-d60c-4ac4-b56c-62b3caf4a291"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/975b7055-e8f5-4cbe-804b-da9995ae3fb2"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f008b0b0-d60c-4ac4-b56c-62b3caf4a291"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="94890460"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="975b7055-e8f5-4cbe-804b-da9995ae3fb2"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Harry Pitts"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/input.xml new file mode 100644 index 00000000..3d92adac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="9b046560-7608-47ae-b91b-3a7c8b4779ca"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6f39c3e2-e2c8-41d1-ba0b-165f8eb2d72b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="30978281"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.551.92"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#6f39c3e2-e2c8-41d1-ba0b-165f8eb2d72b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/log.txt new file mode 100644 index 00000000..15991b26 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/26e0c719-0a3f-4f27-a801-028d6450c0e7*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/26e0c719-0a3f-4f27-a801-028d6450c0e7*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/26e0c719-0a3f-4f27-a801-028d6450c0e7*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/output.json new file mode 100644 index 00000000..124c7366 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "e8d5ccd4-4bf3-4469-975e-4b22b5d9524c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "26e0c719-0a3f-4f27-a801-028d6450c0e7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.551.92" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/ba6e6fbd-5f10-4186-8d2a-ab7230c49544" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/cbd95f90-abbf-41d5-bc78-44e3e79cfdf5" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ba6e6fbd-5f10-4186-8d2a-ab7230c49544", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "30978281" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "cbd95f90-abbf-41d5-bc78-44e3e79cfdf5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Chanda Lear" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/output.xml new file mode 100644 index 00000000..325556d9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/009_Request_MedicationDispense_e8d5ccd4/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e8d5ccd4-4bf3-4469-975e-4b22b5d9524c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="26e0c719-0a3f-4f27-a801-028d6450c0e7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.551.92"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/ba6e6fbd-5f10-4186-8d2a-ab7230c49544"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/cbd95f90-abbf-41d5-bc78-44e3e79cfdf5"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ba6e6fbd-5f10-4186-8d2a-ab7230c49544"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="30978281"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cbd95f90-abbf-41d5-bc78-44e3e79cfdf5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Chanda Lear"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/input.xml new file mode 100644 index 00000000..465aba8c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b7698c22-7c98-4023-84a1-2a76bee694de"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9d4211d1-66d1-40e3-8a24-ea80887c92f1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07943704"/> + </coding> + <text value="Calglucoor"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="AMP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="3"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.765.77"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#9d4211d1-66d1-40e3-8a24-ea80887c92f1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/log.txt new file mode 100644 index 00000000..31aee872 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/04406213-dbd8-42bd-9b2e-b5fad0de91ee*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/04406213-dbd8-42bd-9b2e-b5fad0de91ee*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/04406213-dbd8-42bd-9b2e-b5fad0de91ee*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/output.json new file mode 100644 index 00000000..f61e1040 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "71f76f82-d7ac-4c7b-81c0-6bc2ac21b214", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "04406213-dbd8-42bd-9b2e-b5fad0de91ee", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.765.77" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f7ccd232-95fc-415b-b456-db9bacde4053" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/5a6e2e4d-a423-4ede-8f86-b6fcf8483d77" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f7ccd232-95fc-415b-b456-db9bacde4053", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "07943704" + } ], + "text": "Calglucoor" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "AMP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "3" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "5a6e2e4d-a423-4ede-8f86-b6fcf8483d77", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rusty Nails" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/output.xml new file mode 100644 index 00000000..70291ccf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_71f76f82/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="71f76f82-d7ac-4c7b-81c0-6bc2ac21b214"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="04406213-dbd8-42bd-9b2e-b5fad0de91ee"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.765.77"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f7ccd232-95fc-415b-b456-db9bacde4053"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/5a6e2e4d-a423-4ede-8f86-b6fcf8483d77"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f7ccd232-95fc-415b-b456-db9bacde4053"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07943704"/> + </coding> + <text value="Calglucoor"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="AMP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="3"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5a6e2e4d-a423-4ede-8f86-b6fcf8483d77"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rusty Nails"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/input.xml new file mode 100644 index 00000000..f7af900a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b5ff96d1-5f55-44d3-9b6f-92c00d7ab720"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.766.74"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/log.txt new file mode 100644 index 00000000..eeb3e676 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/972cc4b0-e611-41f6-8766-73b16edb42e7*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/972cc4b0-e611-41f6-8766-73b16edb42e7*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/972cc4b0-e611-41f6-8766-73b16edb42e7*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/output.json new file mode 100644 index 00000000..56897103 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "a00e4916-cb4e-49aa-b284-12aa140ee21c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "972cc4b0-e611-41f6-8766-73b16edb42e7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.766.74" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/21209f1a-c1a3-4855-8efd-638bd0eec6b6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/13fd691a-6b13-4089-988a-93c7009553bf" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "21209f1a-c1a3-4855-8efd-638bd0eec6b6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "13fd691a-6b13-4089-988a-93c7009553bf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Gene Poole" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/output.xml new file mode 100644 index 00000000..9bd708f5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a00e4916/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a00e4916-cb4e-49aa-b284-12aa140ee21c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="972cc4b0-e611-41f6-8766-73b16edb42e7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.766.74"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/21209f1a-c1a3-4855-8efd-638bd0eec6b6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/13fd691a-6b13-4089-988a-93c7009553bf"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="21209f1a-c1a3-4855-8efd-638bd0eec6b6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="13fd691a-6b13-4089-988a-93c7009553bf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Gene Poole"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/input.xml new file mode 100644 index 00000000..d71a4f4e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f08aa035-21c6-4dcf-a24d-bf5575ab995d"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5a09919f-802b-43e9-b62a-329150214fa4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.756.07"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5a09919f-802b-43e9-b62a-329150214fa4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/log.txt new file mode 100644 index 00000000..1df5d00e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/74dfb819-8859-4ac0-aff7-dc3c2e3f3c69*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/74dfb819-8859-4ac0-aff7-dc3c2e3f3c69*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/74dfb819-8859-4ac0-aff7-dc3c2e3f3c69*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/output.json new file mode 100644 index 00000000..b2e64a02 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "a8177c29-496f-4d08-baf8-dfd1d68689d0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "74dfb819-8859-4ac0-aff7-dc3c2e3f3c69", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.756.07" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/06d5afce-1232-42c7-9752-82bb6f2c6b3d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/897022ff-6598-486e-a082-5a30200ccc44" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "06d5afce-1232-42c7-9752-82bb6f2c6b3d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "897022ff-6598-486e-a082-5a30200ccc44", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ken Oppenner" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/output.xml new file mode 100644 index 00000000..d994fe7b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/010_Request_MedicationDispense_a8177c29/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a8177c29-496f-4d08-baf8-dfd1d68689d0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="74dfb819-8859-4ac0-aff7-dc3c2e3f3c69"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.756.07"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/06d5afce-1232-42c7-9752-82bb6f2c6b3d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/897022ff-6598-486e-a082-5a30200ccc44"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="06d5afce-1232-42c7-9752-82bb6f2c6b3d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="897022ff-6598-486e-a082-5a30200ccc44"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ken Oppenner"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/input.xml new file mode 100644 index 00000000..ac813601 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8f3ff291-01d9-4daf-9e12-69b9e5d41b30"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fd02588d-b2f9-4d37-a188-6b7c24382ead"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87002772"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.528.64"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#fd02588d-b2f9-4d37-a188-6b7c24382ead"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/log.txt new file mode 100644 index 00000000..56eb6051 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1157c654-9aea-466c-9d5d-bf22a3d58f7f*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1157c654-9aea-466c-9d5d-bf22a3d58f7f*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1157c654-9aea-466c-9d5d-bf22a3d58f7f*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/output.json new file mode 100644 index 00000000..aed921fe --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "56e40195-7067-47d3-ab41-a4cf42a05296", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1157c654-9aea-466c-9d5d-bf22a3d58f7f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.528.64" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/427100be-8192-4f77-9ce8-7c94dfd92b50" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/35f16e80-5d9f-46fa-b9a7-d6fd820f6929" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "427100be-8192-4f77-9ce8-7c94dfd92b50", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "87002772" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "35f16e80-5d9f-46fa-b9a7-d6fd820f6929", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sue Jeu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/output.xml new file mode 100644 index 00000000..92bba40d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_56e40195/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="56e40195-7067-47d3-ab41-a4cf42a05296"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1157c654-9aea-466c-9d5d-bf22a3d58f7f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.528.64"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/427100be-8192-4f77-9ce8-7c94dfd92b50"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/35f16e80-5d9f-46fa-b9a7-d6fd820f6929"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="427100be-8192-4f77-9ce8-7c94dfd92b50"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87002772"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="35f16e80-5d9f-46fa-b9a7-d6fd820f6929"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sue Jeu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/input.xml new file mode 100644 index 00000000..1838fc0c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f976d60f-6a94-43be-acc2-1f02f7fe75b7"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="935cf074-8360-466f-b82a-a0a912f333c6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="78632037"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.530.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#935cf074-8360-466f-b82a-a0a912f333c6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/log.txt new file mode 100644 index 00000000..e2651182 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/a664a3ff-21d3-4afa-9ca2-12b8d61cb9d6*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/a664a3ff-21d3-4afa-9ca2-12b8d61cb9d6*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/a664a3ff-21d3-4afa-9ca2-12b8d61cb9d6*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/output.json new file mode 100644 index 00000000..31809d27 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "6dcbcf82-f25c-4102-a11f-eb83dddba26c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "a664a3ff-21d3-4afa-9ca2-12b8d61cb9d6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.530.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/7aeeb28b-0171-4e21-a676-b8de881c827e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/d031b1d8-d621-42e2-8319-035794b4b1dc" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7aeeb28b-0171-4e21-a676-b8de881c827e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "78632037" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "d031b1d8-d621-42e2-8319-035794b4b1dc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Pepe C. Cola" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/output.xml new file mode 100644 index 00000000..eaedec8f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_6dcbcf82/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6dcbcf82-f25c-4102-a11f-eb83dddba26c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a664a3ff-21d3-4afa-9ca2-12b8d61cb9d6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.530.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/7aeeb28b-0171-4e21-a676-b8de881c827e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/d031b1d8-d621-42e2-8319-035794b4b1dc"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7aeeb28b-0171-4e21-a676-b8de881c827e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="78632037"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d031b1d8-d621-42e2-8319-035794b4b1dc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Pepe C. Cola"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/input.xml new file mode 100644 index 00000000..0d5ea6ac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="251c9cea-ae9b-4975-822e-4c87d29f161a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bc1c6f86-2c26-4ed2-b717-fd73022e6f53"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87382645"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.535.43"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#bc1c6f86-2c26-4ed2-b717-fd73022e6f53"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/log.txt new file mode 100644 index 00000000..550a4d2f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/c697346c-8d38-47e4-b742-f34360ef8da5*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/c697346c-8d38-47e4-b742-f34360ef8da5*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/c697346c-8d38-47e4-b742-f34360ef8da5*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/output.json new file mode 100644 index 00000000..9f1b7c5e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "72acb68b-0890-44a6-a4ac-30a7b4805603", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "c697346c-8d38-47e4-b742-f34360ef8da5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.535.43" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/36b846df-9e36-45c0-b514-fa2f78b83597" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/4ade94a8-466f-4d78-8730-9117bd12d300" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "36b846df-9e36-45c0-b514-fa2f78b83597", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "87382645" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "4ade94a8-466f-4d78-8730-9117bd12d300", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ann Tartica" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/output.xml new file mode 100644 index 00000000..488d4493 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_72acb68b/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="72acb68b-0890-44a6-a4ac-30a7b4805603"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c697346c-8d38-47e4-b742-f34360ef8da5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.535.43"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/36b846df-9e36-45c0-b514-fa2f78b83597"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/4ade94a8-466f-4d78-8730-9117bd12d300"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="36b846df-9e36-45c0-b514-fa2f78b83597"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87382645"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ade94a8-466f-4d78-8730-9117bd12d300"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ann Tartica"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/input.xml new file mode 100644 index 00000000..ae753ab9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="03b61c19-acab-4cff-901c-48b2226684a9"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9c18ac42-2969-44aa-b951-c6bfa687b5bf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10256692"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.526.70"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#9c18ac42-2969-44aa-b951-c6bfa687b5bf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/log.txt new file mode 100644 index 00000000..146dc203 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1f782855-49ff-444e-9f84-65399de25069*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1f782855-49ff-444e-9f84-65399de25069*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1f782855-49ff-444e-9f84-65399de25069*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/output.json new file mode 100644 index 00000000..03c0d785 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "d356fb06-52bd-4bec-8a3f-e7d697e98311", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1f782855-49ff-444e-9f84-65399de25069", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.526.70" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/3397b250-cae7-48c0-beb4-19905e20e18e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/21bbb410-883f-4c0a-8c49-60e30f2149e6" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3397b250-cae7-48c0-beb4-19905e20e18e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10256692" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "21bbb410-883f-4c0a-8c49-60e30f2149e6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jim Shu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/output.xml new file mode 100644 index 00000000..488a847e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/011_Request_MedicationDispense_d356fb06/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d356fb06-52bd-4bec-8a3f-e7d697e98311"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1f782855-49ff-444e-9f84-65399de25069"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.526.70"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/3397b250-cae7-48c0-beb4-19905e20e18e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/21bbb410-883f-4c0a-8c49-60e30f2149e6"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3397b250-cae7-48c0-beb4-19905e20e18e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10256692"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="21bbb410-883f-4c0a-8c49-60e30f2149e6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jim Shu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/input.xml new file mode 100644 index 00000000..f99a14a1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="27819d94-b175-489e-a051-b8ecc4b04433"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b8b6f343-e196-4bf1-87e4-482535ff8f0e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.742.49"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#b8b6f343-e196-4bf1-87e4-482535ff8f0e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/log.txt new file mode 100644 index 00000000..fa02d227 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/45e96e8e-35dc-4ddf-94d6-91fb6bda6554*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/45e96e8e-35dc-4ddf-94d6-91fb6bda6554*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/45e96e8e-35dc-4ddf-94d6-91fb6bda6554*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/output.json new file mode 100644 index 00000000..946a4b47 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "91805a70-a169-4b52-a112-bebfd7d6c684", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "45e96e8e-35dc-4ddf-94d6-91fb6bda6554", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.742.49" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/70dae982-1df9-4c95-9355-8ca605b9ac49" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/0604cadb-29a6-4294-adca-5696ec900758" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "70dae982-1df9-4c95-9355-8ca605b9ac49", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "0604cadb-29a6-4294-adca-5696ec900758", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Lina Ginster" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/output.xml new file mode 100644 index 00000000..4a50783c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/013_Request_MedicationDispense_91805a70/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="91805a70-a169-4b52-a112-bebfd7d6c684"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="45e96e8e-35dc-4ddf-94d6-91fb6bda6554"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.742.49"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/70dae982-1df9-4c95-9355-8ca605b9ac49"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/0604cadb-29a6-4294-adca-5696ec900758"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="70dae982-1df9-4c95-9355-8ca605b9ac49"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0604cadb-29a6-4294-adca-5696ec900758"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Lina Ginster"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/input.xml new file mode 100644 index 00000000..10094e85 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="0926ecff-d275-4e6f-a03c-ce5dbff6d87a"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6cbfa774-2875-4c4e-a158-0b01299011fc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.740.55"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#6cbfa774-2875-4c4e-a158-0b01299011fc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/log.txt new file mode 100644 index 00000000..c5d2ed40 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5c24a502-e0ee-4b4a-9899-10c3b5439cb3*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5c24a502-e0ee-4b4a-9899-10c3b5439cb3*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5c24a502-e0ee-4b4a-9899-10c3b5439cb3*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/output.json new file mode 100644 index 00000000..7be526cd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "2d9f6ecc-8ba4-4f44-9b15-f1c117f2c968", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5c24a502-e0ee-4b4a-9899-10c3b5439cb3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.740.55" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/1d411ce2-efee-498b-8f1f-a305c91a4b29" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/365710fe-da63-4d6d-8a2e-13adabc9ada6" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1d411ce2-efee-498b-8f1f-a305c91a4b29", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "365710fe-da63-4d6d-8a2e-13adabc9ada6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Aretha Holly" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/output.xml new file mode 100644 index 00000000..20f7b567 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_2d9f6ecc/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2d9f6ecc-8ba4-4f44-9b15-f1c117f2c968"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5c24a502-e0ee-4b4a-9899-10c3b5439cb3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.740.55"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/1d411ce2-efee-498b-8f1f-a305c91a4b29"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/365710fe-da63-4d6d-8a2e-13adabc9ada6"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1d411ce2-efee-498b-8f1f-a305c91a4b29"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="365710fe-da63-4d6d-8a2e-13adabc9ada6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Aretha Holly"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/input.xml new file mode 100644 index 00000000..1dbebf06 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="227cd07a-1fe5-44d6-99bf-748c42a34bda"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a69d5e37-404d-4491-b487-1eaf0def0842"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.745.40"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#a69d5e37-404d-4491-b487-1eaf0def0842"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/log.txt new file mode 100644 index 00000000..a7517813 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/7be2ed47-ebcd-42b0-b7a5-4e75f427cca2*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/7be2ed47-ebcd-42b0-b7a5-4e75f427cca2*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/7be2ed47-ebcd-42b0-b7a5-4e75f427cca2*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/output.json new file mode 100644 index 00000000..33abce7b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "e08671c3-76b4-4b6f-8051-f1a6212a5ab6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "7be2ed47-ebcd-42b0-b7a5-4e75f427cca2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.745.40" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/addd277a-17d2-4b39-9db0-37231a92e5a2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110498565" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/abe7a303-a482-4a0f-805e-46e360692593" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "addd277a-17d2-4b39-9db0-37231a92e5a2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "abe7a303-a482-4a0f-805e-46e360692593", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rosie Peach" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/output.xml new file mode 100644 index 00000000..91e06b81 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/014_Request_MedicationDispense_e08671c3/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e08671c3-76b4-4b6f-8051-f1a6212a5ab6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7be2ed47-ebcd-42b0-b7a5-4e75f427cca2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.745.40"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/addd277a-17d2-4b39-9db0-37231a92e5a2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/abe7a303-a482-4a0f-805e-46e360692593"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="addd277a-17d2-4b39-9db0-37231a92e5a2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="abe7a303-a482-4a0f-805e-46e360692593"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rosie Peach"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/input.xml new file mode 100644 index 00000000..36962cd8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/input.xml @@ -0,0 +1,90 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="med0314"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#med0314"/> + <display value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/log.txt new file mode 100644 index 00000000..1c6fbcd0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/e09745de-6981-430c-a887-346ec451aac8*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/e09745de-6981-430c-a887-346ec451aac8*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/e09745de-6981-430c-a887-346ec451aac8*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/output.json new file mode 100644 index 00000000..387a228d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "8d0f44ed-ba9d-4355-9a7c-e29f776e671e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "e09745de-6981-430c-a887-346ec451aac8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.123.456.789.123.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/39c77767-8779-4051-b9e6-ad63ce96b84f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X123456789" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/4c541f5d-3494-452d-a15c-a1289c496773" + } + } ], + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + }, + "whenHandedOver": "2020-03-20", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "39c77767-8779-4051-b9e6-ad63ce96b84f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "4c541f5d-3494-452d-a15c-a1289c496773", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000129070" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Noah Lott" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/output.xml new file mode 100644 index 00000000..200e5af1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_8d0f44ed/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8d0f44ed-ba9d-4355-9a7c-e29f776e671e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="e09745de-6981-430c-a887-346ec451aac8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/39c77767-8779-4051-b9e6-ad63ce96b84f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/4c541f5d-3494-452d-a15c-a1289c496773"/> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="39c77767-8779-4051-b9e6-ad63ce96b84f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4c541f5d-3494-452d-a15c-a1289c496773"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Noah Lott"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/input.xml new file mode 100644 index 00000000..36962cd8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/input.xml @@ -0,0 +1,90 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="med0314"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#med0314"/> + <display value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/log.txt new file mode 100644 index 00000000..ced91e99 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/82a2b5e5-a5b7-4166-8124-b1aa23f4188b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/82a2b5e5-a5b7-4166-8124-b1aa23f4188b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/82a2b5e5-a5b7-4166-8124-b1aa23f4188b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/output.json new file mode 100644 index 00000000..57340ad9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "c8335ed8-a02c-4e00-9ab8-bd8746c0359d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "82a2b5e5-a5b7-4166-8124-b1aa23f4188b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.123.456.789.123.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/d5f12600-120d-44fb-a074-d2906ab6451f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X123456789" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/a40149f7-fb86-477f-a00e-2451aacaf1fb" + } + } ], + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + }, + "whenHandedOver": "2020-03-20", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d5f12600-120d-44fb-a074-d2906ab6451f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "a40149f7-fb86-477f-a00e-2451aacaf1fb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000129070" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Max Little" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/output.xml new file mode 100644 index 00000000..d607dd9f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/06_request_taskClose_c8335ed8/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c8335ed8-a02c-4e00-9ab8-bd8746c0359d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="82a2b5e5-a5b7-4166-8124-b1aa23f4188b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/d5f12600-120d-44fb-a074-d2906ab6451f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/a40149f7-fb86-477f-a00e-2451aacaf1fb"/> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d5f12600-120d-44fb-a074-d2906ab6451f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a40149f7-fb86-477f-a00e-2451aacaf1fb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Max Little"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/input.xml new file mode 100644 index 00000000..f1daf1cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dffbfd6a-5712-4798-bdc8-07201eb77ab8"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="med0314"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#med0314"/> + <display value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/log.txt new file mode 100644 index 00000000..ab0cc401 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/7a7ecac6-bae0-46e3-8e75-d3df70d287cd*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/7a7ecac6-bae0-46e3-8e75-d3df70d287cd*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/7a7ecac6-bae0-46e3-8e75-d3df70d287cd*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/output.json new file mode 100644 index 00000000..afcd0bf1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "00c96c80-208f-4de1-bbeb-1349e65511c5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "7a7ecac6-bae0-46e3-8e75-d3df70d287cd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.123.456.789.123.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/4541772b-0d6b-4ad7-ad65-d7228c2563f0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X123456789" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/d73ff990-a66b-4780-8721-50e40a9f6fb3" + } + } ], + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + }, + "whenHandedOver": "2020-03-20", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4541772b-0d6b-4ad7-ad65-d7228c2563f0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "d73ff990-a66b-4780-8721-50e40a9f6fb3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000129070" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Marge Innastraightline" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/output.xml new file mode 100644 index 00000000..81ee6f30 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_00c96c80/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="00c96c80-208f-4de1-bbeb-1349e65511c5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7a7ecac6-bae0-46e3-8e75-d3df70d287cd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/4541772b-0d6b-4ad7-ad65-d7228c2563f0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/d73ff990-a66b-4780-8721-50e40a9f6fb3"/> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4541772b-0d6b-4ad7-ad65-d7228c2563f0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d73ff990-a66b-4780-8721-50e40a9f6fb3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Marge Innastraightline"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/input.xml new file mode 100644 index 00000000..f1daf1cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dffbfd6a-5712-4798-bdc8-07201eb77ab8"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="med0314"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#med0314"/> + <display value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/log.txt new file mode 100644 index 00000000..8152eb30 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/16601a69-3d53-40e8-87fc-24bc59269b03*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/16601a69-3d53-40e8-87fc-24bc59269b03*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/16601a69-3d53-40e8-87fc-24bc59269b03*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/output.json new file mode 100644 index 00000000..14c9b3f1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "816796a2-43da-40af-ac43-4e12db041d84", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "16601a69-3d53-40e8-87fc-24bc59269b03", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.123.456.789.123.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/1698850b-7197-46ef-8a93-19f9d049177e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X123456789" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ced1fe02-4870-4818-918b-97c040223986" + } + } ], + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + }, + "whenHandedOver": "2020-03-20", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1698850b-7197-46ef-8a93-19f9d049177e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ced1fe02-4870-4818-918b-97c040223986", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000129070" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Bowen Arrow" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/output.xml new file mode 100644 index 00000000..a1d340aa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/08_response_taskDispense_816796a2/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="816796a2-43da-40af-ac43-4e12db041d84"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="16601a69-3d53-40e8-87fc-24bc59269b03"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.123.456.789.123.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/1698850b-7197-46ef-8a93-19f9d049177e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X123456789"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ced1fe02-4870-4818-918b-97c040223986"/> + </actor> + </performer> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + <whenHandedOver value="2020-03-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1698850b-7197-46ef-8a93-19f9d049177e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ced1fe02-4870-4818-918b-97c040223986"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000129070"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Bowen Arrow"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/input.xml new file mode 100644 index 00000000..230e7aee --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1c5db392-40ee-481b-987f-f4bfa389abdd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04866280"/> + </coding> + <text value="Sumatriptan Dura 100mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="12"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.204.02"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#1c5db392-40ee-481b-987f-f4bfa389abdd"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:29:09+02:00"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/log.txt new file mode 100644 index 00000000..6ccf46ce --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/a64d1597-98d6-468e-8731-17d5f6e54ae6*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/a64d1597-98d6-468e-8731-17d5f6e54ae6*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/a64d1597-98d6-468e-8731-17d5f6e54ae6*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/output.json new file mode 100644 index 00000000..4e6cb843 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "999890a5-2154-4ab2-b872-c80159ea9784", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "a64d1597-98d6-468e-8731-17d5f6e54ae6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.204.02" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b89435bd-555e-494d-a008-39d2736b3445" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "Z828875733" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/af007230-3251-4dee-8f15-29031f4c77db" + } + } ], + "whenHandedOver": "2024-07-02T09:29:09+02:00", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b89435bd-555e-494d-a008-39d2736b3445", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04866280" + } ], + "text": "Sumatriptan Dura 100mg" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "12" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "af007230-3251-4dee-8f15-29031f4c77db", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Michelle Lynn" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/output.xml new file mode 100644 index 00000000..9cc303cb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.204.02_medicationdispense_Sumatriptan_PZN_999890a5/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="999890a5-2154-4ab2-b872-c80159ea9784"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a64d1597-98d6-468e-8731-17d5f6e54ae6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.204.02"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b89435bd-555e-494d-a008-39d2736b3445"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/af007230-3251-4dee-8f15-29031f4c77db"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:29:09+02:00"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b89435bd-555e-494d-a008-39d2736b3445"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04866280"/> + </coding> + <text value="Sumatriptan Dura 100mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="12"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="af007230-3251-4dee-8f15-29031f4c77db"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Michelle Lynn"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/input.xml new file mode 100644 index 00000000..121a322a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2253116c-2a97-41ca-b7f9-6cda642982b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="18369912"/> + </coding> + <text value="Rotigotin Neurax 8mg/24H"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="7"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.206.93"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#2253116c-2a97-41ca-b7f9-6cda642982b7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:34:04+02:00"/> + <dosageInstruction> + <text value="1 Pflaster am Tag"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/log.txt new file mode 100644 index 00000000..ad52c23b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/f6eb0363-7cd3-49f7-bbfa-83223a1c2f37*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/f6eb0363-7cd3-49f7-bbfa-83223a1c2f37*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/f6eb0363-7cd3-49f7-bbfa-83223a1c2f37*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/output.json new file mode 100644 index 00000000..a77ff879 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "23f44f6a-bd12-4117-88b5-b60ad66ed241", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "f6eb0363-7cd3-49f7-bbfa-83223a1c2f37", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.206.93" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/62221c9f-c802-4c83-ad5b-f7d0047f2863" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110474905" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/8f903d89-d9f1-4db5-9ad8-3532a4726b36" + } + } ], + "whenHandedOver": "2024-07-02T09:34:04+02:00", + "dosageInstruction": [ { + "text": "1 Pflaster am Tag" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "62221c9f-c802-4c83-ad5b-f7d0047f2863", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "18369912" + } ], + "text": "Rotigotin Neurax 8mg/24H" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PFT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "7" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "8f903d89-d9f1-4db5-9ad8-3532a4726b36", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sue Yu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/output.xml new file mode 100644 index 00000000..2c98d2fc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.206.93_medicationdispense_Neupro_PZN_23f44f6a/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="23f44f6a-bd12-4117-88b5-b60ad66ed241"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f6eb0363-7cd3-49f7-bbfa-83223a1c2f37"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.206.93"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/62221c9f-c802-4c83-ad5b-f7d0047f2863"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/8f903d89-d9f1-4db5-9ad8-3532a4726b36"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:34:04+02:00"/> + <dosageInstruction> + <text value="1 Pflaster am Tag"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="62221c9f-c802-4c83-ad5b-f7d0047f2863"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="18369912"/> + </coding> + <text value="Rotigotin Neurax 8mg/24H"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="7"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8f903d89-d9f1-4db5-9ad8-3532a4726b36"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sue Yu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/input.xml new file mode 100644 index 00000000..18049ec3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b8cd5418-6196-4284-b38e-1dda2cb18c34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan Hustensaft"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.215.66"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#b8cd5418-6196-4284-b38e-1dda2cb18c34"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:36:50+02:00"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/log.txt new file mode 100644 index 00000000..f25bb2c5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/48875864-d66b-459a-8def-9148847024f1*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/48875864-d66b-459a-8def-9148847024f1*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/48875864-d66b-459a-8def-9148847024f1*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/output.json new file mode 100644 index 00000000..573d5c08 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "3f68539a-40a1-471e-97d1-bbe3c72ed880", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "48875864-d66b-459a-8def-9148847024f1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.215.66" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/373328a0-6b69-49ae-9f8c-b053afb52f26" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "Z828875733" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/8ecb3707-388f-4d29-bac7-231eea8e0c7c" + } + } ], + "whenHandedOver": "2024-07-02T09:36:50+02:00", + "dosageInstruction": [ { + "text": "2mal tägl. 5ml" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "373328a0-6b69-49ae-9f8c-b053afb52f26", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08585997" + } ], + "text": "Prospan Hustensaft" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FLE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "8ecb3707-388f-4d29-bac7-231eea8e0c7c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Frank N. Stein" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/output.xml new file mode 100644 index 00000000..9a8d9e24 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.215.66_medicationdispense_3Prospan_PZN_3f68539a/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="3f68539a-40a1-471e-97d1-bbe3c72ed880"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="48875864-d66b-459a-8def-9148847024f1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.215.66"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/373328a0-6b69-49ae-9f8c-b053afb52f26"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/8ecb3707-388f-4d29-bac7-231eea8e0c7c"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:36:50+02:00"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="373328a0-6b69-49ae-9f8c-b053afb52f26"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan Hustensaft"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8ecb3707-388f-4d29-bac7-231eea8e0c7c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Frank N. Stein"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/input.xml new file mode 100644 index 00000000..47be038a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/input.xml @@ -0,0 +1,82 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="daec989b-a2bd-4398-bb23-98b011cf2ba4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16875114"/> + </coding> + <text value="Salmeterol/Flut AL50/250UG"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="180"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.241.85"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#daec989b-a2bd-4398-bb23-98b011cf2ba4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H064287850"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:51:11+02:00"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/log.txt new file mode 100644 index 00000000..7cbe259e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/d2f45e7c-a05a-4ee9-b0e7-71e6375eeb20*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/d2f45e7c-a05a-4ee9-b0e7-71e6375eeb20*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/d2f45e7c-a05a-4ee9-b0e7-71e6375eeb20*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/output.json new file mode 100644 index 00000000..d1d22440 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "45fb16f7-ce16-44d4-97df-64d1e1e39088", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "d2f45e7c-a05a-4ee9-b0e7-71e6375eeb20", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.241.85" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/477d3b53-c1c5-494d-bfca-ed6642f4103f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H064287850" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/bb4052f5-8d6f-4b32-836a-1e2bc7d8a4cf" + } + } ], + "whenHandedOver": "2024-07-02T09:51:11+02:00" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "477d3b53-c1c5-494d-bfca-ed6642f4103f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16875114" + } ], + "text": "Salmeterol/Flut AL50/250UG" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "180" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "bb4052f5-8d6f-4b32-836a-1e2bc7d8a4cf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Myra Maines" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/output.xml new file mode 100644 index 00000000..1bd6c101 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.241.85_medicationdispense_6Viani_PZN_45fb16f7/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="45fb16f7-ce16-44d4-97df-64d1e1e39088"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="d2f45e7c-a05a-4ee9-b0e7-71e6375eeb20"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.241.85"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/477d3b53-c1c5-494d-bfca-ed6642f4103f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H064287850"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/bb4052f5-8d6f-4b32-836a-1e2bc7d8a4cf"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T09:51:11+02:00"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="477d3b53-c1c5-494d-bfca-ed6642f4103f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16875114"/> + </coding> + <text value="Salmeterol/Flut AL50/250UG"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="180"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="bb4052f5-8d6f-4b32-836a-1e2bc7d8a4cf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Myra Maines"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/input.xml new file mode 100644 index 00000000..801b9304 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/input.xml @@ -0,0 +1,82 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ebdf3d02-f586-4f51-b40d-93604d23d7d0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="17974137"/> + </coding> + <text value="Sitagliptin Glenmark 50mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="98"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.373.77"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#ebdf3d02-f586-4f51-b40d-93604d23d7d0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:30:42+02:00"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/log.txt new file mode 100644 index 00000000..47b8e41e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/d585f5a6-4986-4f04-a0bc-938647cd7550*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/d585f5a6-4986-4f04-a0bc-938647cd7550*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/d585f5a6-4986-4f04-a0bc-938647cd7550*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/output.json new file mode 100644 index 00000000..9ff59e76 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "b4649170-3da8-4718-a7b4-ad6c319ca22c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "d585f5a6-4986-4f04-a0bc-938647cd7550", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.373.77" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/a990dd66-180c-4745-afd6-631c2fc13556" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "Z828875733" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/718969bb-5483-4033-a352-c874ebb9bf44" + } + } ], + "whenHandedOver": "2024-07-02T11:30:42+02:00" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a990dd66-180c-4745-afd6-631c2fc13556", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "17974137" + } ], + "text": "Sitagliptin Glenmark 50mg" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "98" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "718969bb-5483-4033-a352-c874ebb9bf44", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Trina Woods" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/output.xml new file mode 100644 index 00000000..4abbd8e1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.373.77_medicationdispense_5Januvia_PZN_b4649170/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b4649170-3da8-4718-a7b4-ad6c319ca22c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="d585f5a6-4986-4f04-a0bc-938647cd7550"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.373.77"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/a990dd66-180c-4745-afd6-631c2fc13556"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/718969bb-5483-4033-a352-c874ebb9bf44"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:30:42+02:00"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a990dd66-180c-4745-afd6-631c2fc13556"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="17974137"/> + </coding> + <text value="Sitagliptin Glenmark 50mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="98"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="718969bb-5483-4033-a352-c874ebb9bf44"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Trina Woods"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/input.xml new file mode 100644 index 00000000..b9ef60ad --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/input.xml @@ -0,0 +1,98 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="be05e244-a57b-4a64-9f4a-db8b1becba5b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="5g"/> + </extension> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.549.34"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#be05e244-a57b-4a64-9f4a-db8b1becba5b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:01:36+02:00"/> + <dosageInstruction> + <text value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/log.txt new file mode 100644 index 00000000..ddaad8a6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/8c44edd0-54f0-4f81-9a78-550bc0cafbdb*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/8c44edd0-54f0-4f81-9a78-550bc0cafbdb*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/8c44edd0-54f0-4f81-9a78-550bc0cafbdb*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/output.json new file mode 100644 index 00000000..691d1254 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/output.json @@ -0,0 +1,209 @@ +{ + "resourceType": "Parameters", + "id": "b914a021-068e-4159-bcd4-c771078f1359", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "8c44edd0-54f0-4f81-9a78-550bc0cafbdb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.549.34" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/72597342-3176-4f50-ab01-caa0fc03952e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "Z828875733" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/55d2eb4c-edba-4faf-9ac7-eb4457eceaa0" + } + } ], + "whenHandedOver": "2024-07-02T11:01:36+02:00", + "dosageInstruction": [ { + "text": "1–3mal/Tag auf die erkrankten Hautstellen auftragen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "72597342-3176-4f50-ab01-caa0fc03952e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Lösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Salicylsäure" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "5g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "2-propanol 70 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "55d2eb4c-edba-4faf-9ac7-eb4457eceaa0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Eli Ondefloor" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/output.xml new file mode 100644 index 00000000..54343f9a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.549.34_medicationdispense_Rezeptur_b914a021/output.xml @@ -0,0 +1,198 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b914a021-068e-4159-bcd4-c771078f1359"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8c44edd0-54f0-4f81-9a78-550bc0cafbdb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.549.34"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/72597342-3176-4f50-ab01-caa0fc03952e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/55d2eb4c-edba-4faf-9ac7-eb4457eceaa0"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:01:36+02:00"/> + <dosageInstruction> + <text value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="72597342-3176-4f50-ab01-caa0fc03952e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="5g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="55d2eb4c-edba-4faf-9ac7-eb4457eceaa0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Eli Ondefloor"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/input.xml new file mode 100644 index 00000000..46d030f2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="77f07338-e96f-4b86-a485-55f86967d8a0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L Thyroxin 75 Henning"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.564.86"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#77f07338-e96f-4b86-a485-55f86967d8a0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:15:00+02:00"/> + <dosageInstruction> + <text value="Dj"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/log.txt new file mode 100644 index 00000000..f8679c11 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1048a282-d7a6-4480-80bb-3dec94443be1*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1048a282-d7a6-4480-80bb-3dec94443be1*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1048a282-d7a6-4480-80bb-3dec94443be1*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/output.json new file mode 100644 index 00000000..296b65a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "1bcfef7e-c3c9-4a60-9645-a5d5c00cff32", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1048a282-d7a6-4480-80bb-3dec94443be1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.564.86" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/859e22f9-9ed1-4f2d-92f1-66ed4c868abc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110474905" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/4e36ec1b-6365-460c-ba9f-476ae9803e26" + } + } ], + "whenHandedOver": "2024-07-02T11:15:00+02:00", + "dosageInstruction": [ { + "text": "Dj" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "859e22f9-9ed1-4f2d-92f1-66ed4c868abc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L Thyroxin 75 Henning" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "4e36ec1b-6365-460c-ba9f-476ae9803e26", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Adam Meway" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/output.xml new file mode 100644 index 00000000..65dba22a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.564.86_medicationdispense_MVO_1bcfef7e/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1bcfef7e-c3c9-4a60-9645-a5d5c00cff32"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1048a282-d7a6-4480-80bb-3dec94443be1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.564.86"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/859e22f9-9ed1-4f2d-92f1-66ed4c868abc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/4e36ec1b-6365-460c-ba9f-476ae9803e26"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:15:00+02:00"/> + <dosageInstruction> + <text value="Dj"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="859e22f9-9ed1-4f2d-92f1-66ed4c868abc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L Thyroxin 75 Henning"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4e36ec1b-6365-460c-ba9f-476ae9803e26"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Adam Meway"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/input.xml new file mode 100644 index 00000000..3a28e2d1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aba84b3f-b1fc-4a3a-bab4-9cc46f24783f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00476441"/> + </coding> + <text value="Lisinopril 10 Heumann"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.593.96"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#aba84b3f-b1fc-4a3a-bab4-9cc46f24783f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:22:37+02:00"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/log.txt new file mode 100644 index 00000000..75853991 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/ea698b6b-d02b-4233-b087-541a9fb95d22*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/ea698b6b-d02b-4233-b087-541a9fb95d22*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/ea698b6b-d02b-4233-b087-541a9fb95d22*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/output.json new file mode 100644 index 00000000..69fde0eb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "419166cf-b8e3-4e4a-92cf-bd4bbe5a069e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "ea698b6b-d02b-4233-b087-541a9fb95d22", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.593.96" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/4cc9201f-e5be-46d9-bfb9-1aaca5a3e5b8" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "Z828875733" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/50e7f1d6-561c-454d-96a8-820e189c39cc" + } + } ], + "whenHandedOver": "2024-07-02T11:22:37+02:00", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4cc9201f-e5be-46d9-bfb9-1aaca5a3e5b8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00476441" + } ], + "text": "Lisinopril 10 Heumann" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "50e7f1d6-561c-454d-96a8-820e189c39cc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Joe King" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/output.xml new file mode 100644 index 00000000..4275ef3c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.593.96_medicationdispense_Wirkstoff_mit_Austausch_419166cf/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="419166cf-b8e3-4e4a-92cf-bd4bbe5a069e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ea698b6b-d02b-4233-b087-541a9fb95d22"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.593.96"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/4cc9201f-e5be-46d9-bfb9-1aaca5a3e5b8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="Z828875733"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/50e7f1d6-561c-454d-96a8-820e189c39cc"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:22:37+02:00"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4cc9201f-e5be-46d9-bfb9-1aaca5a3e5b8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00476441"/> + </coding> + <text value="Lisinopril 10 Heumann"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="50e7f1d6-561c-454d-96a8-820e189c39cc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Joe King"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/input.xml new file mode 100644 index 00000000..b0c3a75f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="05317d83-14f7-4b7b-9bba-6fcfdeea3f57"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00766759"/> + </coding> + <text value="Ramipril 1A Pharma 5 mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.627.91"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#05317d83-14f7-4b7b-9bba-6fcfdeea3f57"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110450929"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:18:44+02:00"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/log.txt new file mode 100644 index 00000000..d76aa49c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/cb6b7028-1854-4110-a712-0b80ff600636*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/cb6b7028-1854-4110-a712-0b80ff600636*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/cb6b7028-1854-4110-a712-0b80ff600636*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/output.json new file mode 100644 index 00000000..aa327f83 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "69fc18af-c5b2-4cef-9de0-d7bb948add8b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "cb6b7028-1854-4110-a712-0b80ff600636", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.627.91" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b94ddd55-f571-4fdd-9833-fa380c50686d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110450929" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/32db6f61-95fb-4976-be0a-79541a820ab4" + } + } ], + "whenHandedOver": "2024-07-02T11:18:44+02:00", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b94ddd55-f571-4fdd-9833-fa380c50686d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00766759" + } ], + "text": "Ramipril 1A Pharma 5 mg" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "32db6f61-95fb-4976-be0a-79541a820ab4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Olive Branch" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/output.xml new file mode 100644 index 00000000..15b1987f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.627.91_medicationdispense_WST_69fc18af/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="69fc18af-c5b2-4cef-9de0-d7bb948add8b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="cb6b7028-1854-4110-a712-0b80ff600636"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.627.91"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b94ddd55-f571-4fdd-9833-fa380c50686d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110450929"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/32db6f61-95fb-4976-be0a-79541a820ab4"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:18:44+02:00"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b94ddd55-f571-4fdd-9833-fa380c50686d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00766759"/> + </coding> + <text value="Ramipril 1A Pharma 5 mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="32db6f61-95fb-4976-be0a-79541a820ab4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Olive Branch"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/input.xml new file mode 100644 index 00000000..ceb4ed61 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/input.xml @@ -0,0 +1,82 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bddd9a9c-2171-4dbc-8d05-66bb619ed849"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01983625"/> + </coding> + <text value="Ramilich 5mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.697.75"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#bddd9a9c-2171-4dbc-8d05-66bb619ed849"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T12:01:22+02:00"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/log.txt new file mode 100644 index 00000000..34bfc232 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/ffcc6c32-6323-4f62-873e-e48be56c490d*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/ffcc6c32-6323-4f62-873e-e48be56c490d*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/ffcc6c32-6323-4f62-873e-e48be56c490d*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/output.json new file mode 100644 index 00000000..fde0f390 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "a6ff8551-72db-4f6e-b6ac-71d58e804cb5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "ffcc6c32-6323-4f62-873e-e48be56c490d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.697.75" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/e941a5d1-acb9-4cdc-ab79-f3f087555f49" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110474905" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/e0f00285-351a-4f20-8023-f829338440c0" + } + } ], + "whenHandedOver": "2024-07-02T12:01:22+02:00" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e941a5d1-acb9-4cdc-ab79-f3f087555f49", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01983625" + } ], + "text": "Ramilich 5mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "e0f00285-351a-4f20-8023-f829338440c0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ilene South" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/output.xml new file mode 100644 index 00000000..87ae8fd0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.697.75_medicationdispense_Ramipril_WST_2x50+5x20_Abgabe_a6ff8551/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a6ff8551-72db-4f6e-b6ac-71d58e804cb5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ffcc6c32-6323-4f62-873e-e48be56c490d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.697.75"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/e941a5d1-acb9-4cdc-ab79-f3f087555f49"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/e0f00285-351a-4f20-8023-f829338440c0"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T12:01:22+02:00"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e941a5d1-acb9-4cdc-ab79-f3f087555f49"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01983625"/> + </coding> + <text value="Ramilich 5mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e0f00285-351a-4f20-8023-f829338440c0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ilene South"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/input.xml new file mode 100644 index 00000000..f4b90760 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a62bb615-2179-4eb4-bcfa-e0ccac2f1feb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09494280"/> + </coding> + <text value="Venlafaxin HEU 75mg Tabl"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.713.27"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#a62bb615-2179-4eb4-bcfa-e0ccac2f1feb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110450929"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:36:22+02:00"/> + <dosageInstruction> + <text value="Dj"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/log.txt new file mode 100644 index 00000000..051e6343 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/15265bca-22c9-4ba4-b183-3563f9f6f204*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/15265bca-22c9-4ba4-b183-3563f9f6f204*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/15265bca-22c9-4ba4-b183-3563f9f6f204*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/output.json new file mode 100644 index 00000000..70b47bb8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "c1f023c2-cd67-4100-9a68-41d81d9c0273", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "15265bca-22c9-4ba4-b183-3563f9f6f204", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.713.27" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/2b95d464-87e7-46b1-81b1-3ba2e9ead3bf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110450929" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c22636d0-7283-4bfa-bd8b-24bfb7bef795" + } + } ], + "whenHandedOver": "2024-07-02T11:36:22+02:00", + "dosageInstruction": [ { + "text": "Dj" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2b95d464-87e7-46b1-81b1-3ba2e9ead3bf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09494280" + } ], + "text": "Venlafaxin HEU 75mg Tabl" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c22636d0-7283-4bfa-bd8b-24bfb7bef795", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Tamara Knight" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/output.xml new file mode 100644 index 00000000..92a40c5c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.713.27_medicationdispense_Venlafaxin_PZN_kleinePackungen_c1f023c2/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c1f023c2-cd67-4100-9a68-41d81d9c0273"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="15265bca-22c9-4ba4-b183-3563f9f6f204"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.713.27"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/2b95d464-87e7-46b1-81b1-3ba2e9ead3bf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110450929"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c22636d0-7283-4bfa-bd8b-24bfb7bef795"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:36:22+02:00"/> + <dosageInstruction> + <text value="Dj"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2b95d464-87e7-46b1-81b1-3ba2e9ead3bf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09494280"/> + </coding> + <text value="Venlafaxin HEU 75mg Tabl"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c22636d0-7283-4bfa-bd8b-24bfb7bef795"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Tamara Knight"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/input.xml new file mode 100644 index 00000000..e1974052 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/input.xml @@ -0,0 +1,85 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3d77aba2-06de-4865-ba9c-df62af829aa8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03480822"/> + </coding> + <text value="Tramadol 100 RET 1A Pharma"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.714.24"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#3d77aba2-06de-4865-ba9c-df62af829aa8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H064287850"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:46:33+02:00"/> + <dosageInstruction> + <text value="Dj"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/log.txt new file mode 100644 index 00000000..c2797f56 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/882da1a9-80b8-480b-9895-1e9d0dff3b89*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/882da1a9-80b8-480b-9895-1e9d0dff3b89*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/882da1a9-80b8-480b-9895-1e9d0dff3b89*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/output.json new file mode 100644 index 00000000..5b115777 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "d511af7f-4e43-476f-9df4-c2666ef0d842", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "882da1a9-80b8-480b-9895-1e9d0dff3b89", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.714.24" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f1d9ff81-e61f-4871-bcde-248735523e8b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H064287850" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f5a6b7f0-1fb5-4c1f-9792-2a9123b10ebf" + } + } ], + "whenHandedOver": "2024-07-02T11:46:33+02:00", + "dosageInstruction": [ { + "text": "Dj" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f1d9ff81-e61f-4871-bcde-248735523e8b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03480822" + } ], + "text": "Tramadol 100 RET 1A Pharma" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "RET" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f5a6b7f0-1fb5-4c1f-9792-2a9123b10ebf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Rusty Pipes" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/output.xml new file mode 100644 index 00000000..90d29579 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.714.24_medicationdispense_Venlafaxin_PZN_Austausch_d511af7f/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d511af7f-4e43-476f-9df4-c2666ef0d842"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="882da1a9-80b8-480b-9895-1e9d0dff3b89"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.714.24"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f1d9ff81-e61f-4871-bcde-248735523e8b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H064287850"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f5a6b7f0-1fb5-4c1f-9792-2a9123b10ebf"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:46:33+02:00"/> + <dosageInstruction> + <text value="Dj"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f1d9ff81-e61f-4871-bcde-248735523e8b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03480822"/> + </coding> + <text value="Tramadol 100 RET 1A Pharma"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f5a6b7f0-1fb5-4c1f-9792-2a9123b10ebf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Rusty Pipes"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/input.xml new file mode 100644 index 00000000..7a61a190 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/input.xml @@ -0,0 +1,82 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="87f5bbd5-24a1-4e2d-b9d1-afe3957c0e10"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392022"/> + </coding> + <text value="Venlafaxin 1A Pharma 75mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="50"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.776.32"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#87f5bbd5-24a1-4e2d-b9d1-afe3957c0e10"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:55:14+02:00"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/log.txt new file mode 100644 index 00000000..98be19d1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/b8ac5444-26a0-46c8-8ad4-60ddcab93bd1*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/b8ac5444-26a0-46c8-8ad4-60ddcab93bd1*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/b8ac5444-26a0-46c8-8ad4-60ddcab93bd1*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/output.json new file mode 100644 index 00000000..3d909d05 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "1b714557-c647-47e5-ad32-8ecf90122856", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "b8ac5444-26a0-46c8-8ad4-60ddcab93bd1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.436.776.32" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/87464580-81e4-4508-a229-b7ce02e24776" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110474905" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f5175d4d-0200-491e-bdb3-1e0cbd4a84a2" + } + } ], + "whenHandedOver": "2024-07-02T11:55:14+02:00" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "87464580-81e4-4508-a229-b7ce02e24776", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "05392022" + } ], + "text": "Venlafaxin 1A Pharma 75mg" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "50" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f5175d4d-0200-491e-bdb3-1e0cbd4a84a2", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ima Lytle Teapot" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/output.xml new file mode 100644 index 00000000..5cad2154 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/160.000.226.436.776.32_medicationdispense_Venlafaxin_PZN_kleinePackungen_1b714557/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1b714557-c647-47e5-ad32-8ecf90122856"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b8ac5444-26a0-46c8-8ad4-60ddcab93bd1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.436.776.32"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/87464580-81e4-4508-a229-b7ce02e24776"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110474905"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f5175d4d-0200-491e-bdb3-1e0cbd4a84a2"/> + </actor> + </performer> + <whenHandedOver value="2024-07-02T11:55:14+02:00"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="87464580-81e4-4508-a229-b7ce02e24776"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392022"/> + </coding> + <text value="Venlafaxin 1A Pharma 75mg"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="50"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f5175d4d-0200-491e-bdb3-1e0cbd4a84a2"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ima Lytle Teapot"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/input.xml new file mode 100644 index 00000000..65903f82 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/input.xml @@ -0,0 +1,86 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3465270a-11e7-4bbf-ae53-378f9cc52747"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="001413e4-a5e9-48da-9b07-c17bab476407"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20 St."/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.033.491.280.78"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#001413e4-a5e9-48da-9b07-c17bab476407"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567890"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2022-02-28"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/log.txt new file mode 100644 index 00000000..51399360 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5d42eb65-adfa-4bb3-8a0f-19a7f8792b06*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5d42eb65-adfa-4bb3-8a0f-19a7f8792b06*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5d42eb65-adfa-4bb3-8a0f-19a7f8792b06*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/output.json new file mode 100644 index 00000000..10440a10 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/output.json @@ -0,0 +1,121 @@ +{ + "resourceType": "Parameters", + "id": "256c8280-d302-4cb2-b504-de4d2247dac6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5d42eb65-adfa-4bb3-8a0f-19a7f8792b06", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.033.491.280.78" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/e2ca7476-6e78-4903-bde4-1c3cde8d06ac" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X234567890" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c5d21cf2-c378-4bc3-84f5-95116e387907" + } + } ], + "whenHandedOver": "2022-02-28", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e2ca7476-6e78-4903-bde4-1c3cde8d06ac", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20 St." + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c5d21cf2-c378-4bc3-84f5-95116e387907", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sandy Beech" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/output.xml new file mode 100644 index 00000000..49932e55 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/3465270a-11e7-4bbf-ae53-378f9cc52747_256c8280/output.xml @@ -0,0 +1,123 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="256c8280-d302-4cb2-b504-de4d2247dac6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5d42eb65-adfa-4bb3-8a0f-19a7f8792b06"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.033.491.280.78"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/e2ca7476-6e78-4903-bde4-1c3cde8d06ac"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567890"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c5d21cf2-c378-4bc3-84f5-95116e387907"/> + </actor> + </performer> + <whenHandedOver value="2022-02-28"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e2ca7476-6e78-4903-bde4-1c3cde8d06ac"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20 St."/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c5d21cf2-c378-4bc3-84f5-95116e387907"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sandy Beech"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/input.xml new file mode 100644 index 00000000..9e5c4a28 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ee46e774-0d9d-4f8a-b108-463d600b955c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="208929ac-7835-4c9f-9051-29055ecd3214"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02950964"/> + </coding> + <text value="METFORMIN 850-1A Pharma Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#208929ac-7835-4c9f-9051-29055ecd3214"/> + <display value="METFORMIN 850-1A Pharma Filmtabletten 180 Stk"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/log.txt new file mode 100644 index 00000000..b7df2289 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/f7d81f8f-e5e2-4c28-8d7d-809d92899a5a*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/f7d81f8f-e5e2-4c28-8d7d-809d92899a5a*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/f7d81f8f-e5e2-4c28-8d7d-809d92899a5a*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/output.json new file mode 100644 index 00000000..e9a65a4e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "d2e37ab5-d4e4-4678-a078-45cd2ad44752", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "f7d81f8f-e5e2-4c28-8d7d-809d92899a5a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/44cad858-f931-490c-a496-d26905f7c9e4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/8d2eccdd-550a-4d54-a3ae-9c7d644abfde" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "44cad858-f931-490c-a496-d26905f7c9e4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02950964" + } ], + "text": "METFORMIN 850-1A Pharma Filmtabletten 180 Stk" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "180" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "P987654321-8", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "8d2eccdd-550a-4d54-a3ae-9c7d644abfde", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ben D. Fender" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/output.xml new file mode 100644 index 00000000..1558ca79 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_d2e37ab5/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d2e37ab5-d4e4-4678-a078-45cd2ad44752"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f7d81f8f-e5e2-4c28-8d7d-809d92899a5a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/44cad858-f931-490c-a496-d26905f7c9e4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/8d2eccdd-550a-4d54-a3ae-9c7d644abfde"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="44cad858-f931-490c-a496-d26905f7c9e4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02950964"/> + </coding> + <text value="METFORMIN 850-1A Pharma Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8d2eccdd-550a-4d54-a3ae-9c7d644abfde"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ben D. Fender"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/input.xml new file mode 100644 index 00000000..dc5cd85e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ee46e774-0d9d-4f8a-b108-463d600b955c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="208929ac-7835-4c9f-9051-29055ecd3214"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02950964"/> + </coding> + <text value="METFORMIN 850-1A Pharma Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#208929ac-7835-4c9f-9051-29055ecd3214"/> + <display value="METFORMIN 850-1A Pharma Filmtabletten 180 Stk"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/log.txt new file mode 100644 index 00000000..f9ee08fd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/b1210329-ae0e-4ee7-810b-5809dcd239f1*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/b1210329-ae0e-4ee7-810b-5809dcd239f1*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/b1210329-ae0e-4ee7-810b-5809dcd239f1*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/output.json new file mode 100644 index 00000000..ece18635 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "dba0fee1-24cb-4757-ad4e-d06479b53b24", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "b1210329-ae0e-4ee7-810b-5809dcd239f1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/7cc00ef0-7ff6-4557-8701-ab238143bdaf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/16262b69-f945-4895-a3d7-acbdf24f8fc1" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7cc00ef0-7ff6-4557-8701-ab238143bdaf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02950964" + } ], + "text": "METFORMIN 850-1A Pharma Filmtabletten 180 Stk" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "180" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "P987654321-8", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "16262b69-f945-4895-a3d7-acbdf24f8fc1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Frank Enstein" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/output.xml new file mode 100644 index 00000000..71a90fc2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V1_MedicationDispense_dba0fee1/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dba0fee1-24cb-4757-ad4e-d06479b53b24"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b1210329-ae0e-4ee7-810b-5809dcd239f1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/7cc00ef0-7ff6-4557-8701-ab238143bdaf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/16262b69-f945-4895-a3d7-acbdf24f8fc1"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7cc00ef0-7ff6-4557-8701-ab238143bdaf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02950964"/> + </coding> + <text value="METFORMIN 850-1A Pharma Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="16262b69-f945-4895-a3d7-acbdf24f8fc1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Frank Enstein"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/input.xml new file mode 100644 index 00000000..fecbf181 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5b829135-17d8-4534-9240-3ba68f96829f"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2fd1eaa4-364b-4bb2-8247-49fc0c4fb805"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08999233"/> + </coding> + <text value="METFORMIN STADA 850 mg Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#2fd1eaa4-364b-4bb2-8247-49fc0c4fb805"/> + <display value="METFORMIN STADA 850 mg Filmtabletten 180 Stk"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/log.txt new file mode 100644 index 00000000..ebe8cf14 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/3ebe1226-f8dd-4d52-924e-101eb8373b16*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/3ebe1226-f8dd-4d52-924e-101eb8373b16*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/3ebe1226-f8dd-4d52-924e-101eb8373b16*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/output.json new file mode 100644 index 00000000..47ae401c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "71a9d48e-bfe4-4de6-943a-b03aff44e2c2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "3ebe1226-f8dd-4d52-924e-101eb8373b16", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/d7a45032-c420-4627-9fe1-bd87cd9aa9cc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/58d10a72-8d69-4f2a-ad3d-be404adf3791" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d7a45032-c420-4627-9fe1-bd87cd9aa9cc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08999233" + } ], + "text": "METFORMIN STADA 850 mg Filmtabletten 180 Stk" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "180" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "P987654321-8", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "58d10a72-8d69-4f2a-ad3d-be404adf3791", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Dusty Sandmann" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/output.xml new file mode 100644 index 00000000..ed002362 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_71a9d48e/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="71a9d48e-bfe4-4de6-943a-b03aff44e2c2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3ebe1226-f8dd-4d52-924e-101eb8373b16"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/d7a45032-c420-4627-9fe1-bd87cd9aa9cc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/58d10a72-8d69-4f2a-ad3d-be404adf3791"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d7a45032-c420-4627-9fe1-bd87cd9aa9cc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08999233"/> + </coding> + <text value="METFORMIN STADA 850 mg Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="58d10a72-8d69-4f2a-ad3d-be404adf3791"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Dusty Sandmann"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/input.xml new file mode 100644 index 00000000..f84fc221 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5b829135-17d8-4534-9240-3ba68f96829f"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2fd1eaa4-364b-4bb2-8247-49fc0c4fb805"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08999233"/> + </coding> + <text value="METFORMIN STADA 850 mg Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#2fd1eaa4-364b-4bb2-8247-49fc0c4fb805"/> + <display value="METFORMIN STADA 850 mg Filmtabletten 180 Stk"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/log.txt new file mode 100644 index 00000000..67988612 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1c6ff895-9d55-4ff8-91d6-6e8f35ab3086*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1c6ff895-9d55-4ff8-91d6-6e8f35ab3086*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1c6ff895-9d55-4ff8-91d6-6e8f35ab3086*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/output.json new file mode 100644 index 00000000..27606eb5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "ce40a8d8-2101-4e2c-83dd-63da09a3a6a9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1c6ff895-9d55-4ff8-91d6-6e8f35ab3086", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/bb1707b4-3ae0-47f3-a780-c5ccef70872b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/75c76588-0894-412c-a7bd-4fc06aee6f13" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bb1707b4-3ae0-47f3-a780-c5ccef70872b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08999233" + } ], + "text": "METFORMIN STADA 850 mg Filmtabletten 180 Stk" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "180" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "P987654321-8", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "75c76588-0894-412c-a7bd-4fc06aee6f13", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Moe Skeeto" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/output.xml new file mode 100644 index 00000000..8adb464b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/FT_V2_MedicationDispense_ce40a8d8/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ce40a8d8-2101-4e2c-83dd-63da09a3a6a9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1c6ff895-9d55-4ff8-91d6-6e8f35ab3086"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/bb1707b4-3ae0-47f3-a780-c5ccef70872b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/75c76588-0894-412c-a7bd-4fc06aee6f13"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bb1707b4-3ae0-47f3-a780-c5ccef70872b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08999233"/> + </coding> + <text value="METFORMIN STADA 850 mg Filmtabletten 180 Stk"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="180"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="P987654321-8"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="75c76588-0894-412c-a7bd-4fc06aee6f13"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Moe Skeeto"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/input.xml new file mode 100644 index 00000000..c56627da --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8c020e02-b389-4197-a9fa-b46704501e27"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="92b43894-d359-481d-b951-259b7463fdcd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10962562"/> + </coding> + <text value="FUSIDINSÄURE-ratiopharm 20 mg/g"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="15"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#92b43894-d359-481d-b951-259b7463fdcd"/> + <display value="FUSIDINSÄURE-ratiopharm 20 mg/g"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/log.txt new file mode 100644 index 00000000..4de64fe2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/c9a22595-0d04-47b5-b46a-b855c9586cab*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/c9a22595-0d04-47b5-b46a-b855c9586cab*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/c9a22595-0d04-47b5-b46a-b855c9586cab*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/output.json new file mode 100644 index 00000000..d161e697 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "da9f6c16-91d9-4cef-86b2-fcf0674f0930", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "c9a22595-0d04-47b5-b46a-b855c9586cab", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.008.18" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f914d8a1-0add-4542-ae2e-a271b86db575" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ba646b9d-f7d6-4e3f-94aa-3cdf320eaea3" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "3mal täglich dünn auftragen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f914d8a1-0add-4542-ae2e-a271b86db575", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10962562" + } ], + "text": "FUSIDINSÄURE-ratiopharm 20 mg/g" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "CRE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "15" + } ], + "unit": "g" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ba646b9d-f7d6-4e3f-94aa-3cdf320eaea3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jed Dye" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/output.xml new file mode 100644 index 00000000..31f660b4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_da9f6c16/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="da9f6c16-91d9-4cef-86b2-fcf0674f0930"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c9a22595-0d04-47b5-b46a-b855c9586cab"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f914d8a1-0add-4542-ae2e-a271b86db575"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ba646b9d-f7d6-4e3f-94aa-3cdf320eaea3"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f914d8a1-0add-4542-ae2e-a271b86db575"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10962562"/> + </coding> + <text value="FUSIDINSÄURE-ratiopharm 20 mg/g"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="15"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ba646b9d-f7d6-4e3f-94aa-3cdf320eaea3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jed Dye"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/input.xml new file mode 100644 index 00000000..dab84253 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8c020e02-b389-4197-a9fa-b46704501e27"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="92b43894-d359-481d-b951-259b7463fdcd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10962562"/> + </coding> + <text value="FUSIDINSÄURE-ratiopharm 20 mg/g"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="15"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#92b43894-d359-481d-b951-259b7463fdcd"/> + <display value="FUSIDINSÄURE-ratiopharm 20 mg/g"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/log.txt new file mode 100644 index 00000000..2cdeddd4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/134873f1-5c0d-48f5-acae-d08c77cec4ff*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/134873f1-5c0d-48f5-acae-d08c77cec4ff*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/134873f1-5c0d-48f5-acae-d08c77cec4ff*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/output.json new file mode 100644 index 00000000..40877f00 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "f9152f90-d657-4e99-9547-7f1e50781175", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "134873f1-5c0d-48f5-acae-d08c77cec4ff", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.008.18" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/a3c75678-1af4-4a8f-bb80-21a27ca0d4f0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/dd90c1b6-cea8-495d-a7ee-de1ae4d8343c" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "3mal täglich dünn auftragen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a3c75678-1af4-4a8f-bb80-21a27ca0d4f0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10962562" + } ], + "text": "FUSIDINSÄURE-ratiopharm 20 mg/g" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "CRE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "15" + } ], + "unit": "g" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "dd90c1b6-cea8-495d-a7ee-de1ae4d8343c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jed I. Knight" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/output.xml new file mode 100644 index 00000000..f5494f5d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Arbeitsunfall_MedicationDispense_f9152f90/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f9152f90-d657-4e99-9547-7f1e50781175"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="134873f1-5c0d-48f5-acae-d08c77cec4ff"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/a3c75678-1af4-4a8f-bb80-21a27ca0d4f0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/dd90c1b6-cea8-495d-a7ee-de1ae4d8343c"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3c75678-1af4-4a8f-bb80-21a27ca0d4f0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10962562"/> + </coding> + <text value="FUSIDINSÄURE-ratiopharm 20 mg/g"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="15"/> + </extension> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="dd90c1b6-cea8-495d-a7ee-de1ae4d8343c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jed I. Knight"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/input.xml new file mode 100644 index 00000000..79b18afc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5b2f09be-9fd8-4fc1-b916-cd86ba5d246c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8490dde3-2ed0-480d-9cb3-a8937eea6b1e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW O KA, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8490dde3-2ed0-480d-9cb3-a8937eea6b1e"/> + <display value="FSME IMMUN 0.5ML ERW O KA, 1 St"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/log.txt new file mode 100644 index 00000000..569864a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/b23bf93d-d9b2-405c-b399-506cbf051226*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/b23bf93d-d9b2-405c-b399-506cbf051226*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/b23bf93d-d9b2-405c-b399-506cbf051226*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/output.json new file mode 100644 index 00000000..9beb432e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "c07427b0-7b56-4ebc-8bcd-ebe8579138a7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "b23bf93d-d9b2-405c-b399-506cbf051226", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/19d3c6fe-a8b1-43e6-998e-b2973ad88d13" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/0ca9b135-1fd0-4307-943b-ec82bc8db76b" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "19d3c6fe-a8b1-43e6-998e-b2973ad88d13", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME IMMUN 0.5ML ERW O KA, 1 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210123-45678", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "0ca9b135-1fd0-4307-943b-ec82bc8db76b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Beau Vine" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/output.xml new file mode 100644 index 00000000..5b1776a9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_c07427b0/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c07427b0-7b56-4ebc-8bcd-ebe8579138a7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b23bf93d-d9b2-405c-b399-506cbf051226"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/19d3c6fe-a8b1-43e6-998e-b2973ad88d13"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/0ca9b135-1fd0-4307-943b-ec82bc8db76b"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="19d3c6fe-a8b1-43e6-998e-b2973ad88d13"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW O KA, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0ca9b135-1fd0-4307-943b-ec82bc8db76b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Beau Vine"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/input.xml new file mode 100644 index 00000000..e9b2d5e7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5b2f09be-9fd8-4fc1-b916-cd86ba5d246c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8490dde3-2ed0-480d-9cb3-a8937eea6b1e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW O KA, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8490dde3-2ed0-480d-9cb3-a8937eea6b1e"/> + <display value="FSME IMMUN 0.5ML ERW O KA, 1 St"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/log.txt new file mode 100644 index 00000000..dbb85ab3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/390e1448-38e8-4802-a7e8-428b80b52615*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/390e1448-38e8-4802-a7e8-428b80b52615*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/390e1448-38e8-4802-a7e8-428b80b52615*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/output.json new file mode 100644 index 00000000..a9263bb9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "cf59e842-81f7-4f07-ba42-d09787814103", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "390e1448-38e8-4802-a7e8-428b80b52615", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/ac61ae12-e52f-4774-ba4d-8dd1de31ab2e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/03ef6c1f-d483-418b-89ed-7bcb1b286f5d" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ac61ae12-e52f-4774-ba4d-8dd1de31ab2e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME IMMUN 0.5ML ERW O KA, 1 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210123-45678", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "03ef6c1f-d483-418b-89ed-7bcb1b286f5d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Al Nino" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/output.xml new file mode 100644 index 00000000..85df930a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V1_MedicationDispense_cf59e842/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cf59e842-81f7-4f07-ba42-d09787814103"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="390e1448-38e8-4802-a7e8-428b80b52615"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/ac61ae12-e52f-4774-ba4d-8dd1de31ab2e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/03ef6c1f-d483-418b-89ed-7bcb1b286f5d"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ac61ae12-e52f-4774-ba4d-8dd1de31ab2e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW O KA, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="03ef6c1f-d483-418b-89ed-7bcb1b286f5d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Al Nino"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/input.xml new file mode 100644 index 00000000..cb98f002 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="504e3bb8-6e78-4cdc-9a67-fa67f0ade97e"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5a009cbb-dca9-4dad-b92b-8f9601ee0d31"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11011981"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5a009cbb-dca9-4dad-b92b-8f9601ee0d31"/> + <display value="FSME IMMUN 0.5ML ERW, 1 St"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/log.txt new file mode 100644 index 00000000..9a18b241 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/0b11974a-814b-41d6-b903-83620099b069*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/0b11974a-814b-41d6-b903-83620099b069*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/0b11974a-814b-41d6-b903-83620099b069*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/output.json new file mode 100644 index 00000000..4a130dbc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "07de96d9-8287-47eb-84e0-3f680b3941be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "0b11974a-814b-41d6-b903-83620099b069", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f69a64a5-426b-4304-92f1-e4021016d4e3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/977a7abf-d48a-4dc9-9d54-fce3acf294b3" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f69a64a5-426b-4304-92f1-e4021016d4e3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "11011981" + } ], + "text": "FSME IMMUN 0.5ML ERW, 1 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210123-45678", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "977a7abf-d48a-4dc9-9d54-fce3acf294b3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Aaron Thetires" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/output.xml new file mode 100644 index 00000000..d9804939 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_07de96d9/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="07de96d9-8287-47eb-84e0-3f680b3941be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="0b11974a-814b-41d6-b903-83620099b069"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f69a64a5-426b-4304-92f1-e4021016d4e3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/977a7abf-d48a-4dc9-9d54-fce3acf294b3"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f69a64a5-426b-4304-92f1-e4021016d4e3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11011981"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="977a7abf-d48a-4dc9-9d54-fce3acf294b3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Aaron Thetires"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/input.xml new file mode 100644 index 00000000..0d9fc21d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="504e3bb8-6e78-4cdc-9a67-fa67f0ade97e"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5a009cbb-dca9-4dad-b92b-8f9601ee0d31"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11011981"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5a009cbb-dca9-4dad-b92b-8f9601ee0d31"/> + <display value="FSME IMMUN 0.5ML ERW, 1 St"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/log.txt new file mode 100644 index 00000000..b39adead --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/011ca252-872f-4010-b9c7-0123e3a42934*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/011ca252-872f-4010-b9c7-0123e3a42934*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/011ca252-872f-4010-b9c7-0123e3a42934*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/output.json new file mode 100644 index 00000000..39124f28 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "d4094807-b3ff-471b-9c51-f7f392646980", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "011ca252-872f-4010-b9c7-0123e3a42934", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/0d1e35f4-6adf-489f-8ef3-e403e334a2d1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c9be111d-9f6c-49fb-b287-814bbdb410fc" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0d1e35f4-6adf-489f-8ef3-e403e334a2d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "11011981" + } ], + "text": "FSME IMMUN 0.5ML ERW, 1 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210123-45678", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c9be111d-9f6c-49fb-b287-814bbdb410fc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Lisa Honda" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/output.xml new file mode 100644 index 00000000..d9aace07 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Impfstoff_V2_MedicationDispense_d4094807/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d4094807-b3ff-471b-9c51-f7f392646980"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="011ca252-872f-4010-b9c7-0123e3a42934"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/0d1e35f4-6adf-489f-8ef3-e403e334a2d1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c9be111d-9f6c-49fb-b287-814bbdb410fc"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0d1e35f4-6adf-489f-8ef3-e403e334a2d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11011981"/> + </coding> + <text value="FSME IMMUN 0.5ML ERW, 1 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210123-45678"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c9be111d-9f6c-49fb-b287-814bbdb410fc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Lisa Honda"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/input.xml new file mode 100644 index 00000000..dc56f034 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="6dc2ec9b-a15b-4b96-aa33-1ad231e2a1d3"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5e234315-55f1-4d06-93ca-943d20097d37"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5e234315-55f1-4d06-93ca-943d20097d37"/> + <display value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/log.txt new file mode 100644 index 00000000..1ea61b7b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/05ba2521-7fa9-4373-af94-1838500dfe44*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/05ba2521-7fa9-4373-af94-1838500dfe44*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/05ba2521-7fa9-4373-af94-1838500dfe44*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/output.json new file mode 100644 index 00000000..cdd78c20 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "3ffce413-fc4c-4779-a470-75fa75f6c676", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "05ba2521-7fa9-4373-af94-1838500dfe44", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/e4acc684-cbd9-4c8e-a243-cad17cd31d08" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/5041bdeb-5eb1-4808-8e3e-1971d4c28f96" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e4acc684-cbd9-4c8e-a243-cad17cd31d08", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210-78", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "5041bdeb-5eb1-4808-8e3e-1971d4c28f96", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Annie Howe" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/output.xml new file mode 100644 index 00000000..0889ebf8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_3ffce413/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="3ffce413-fc4c-4779-a470-75fa75f6c676"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="05ba2521-7fa9-4373-af94-1838500dfe44"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/e4acc684-cbd9-4c8e-a243-cad17cd31d08"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/5041bdeb-5eb1-4808-8e3e-1971d4c28f96"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e4acc684-cbd9-4c8e-a243-cad17cd31d08"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5041bdeb-5eb1-4808-8e3e-1971d4c28f96"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Annie Howe"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/input.xml new file mode 100644 index 00000000..5bd4dec4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="6dc2ec9b-a15b-4b96-aa33-1ad231e2a1d3"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5e234315-55f1-4d06-93ca-943d20097d37"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5e234315-55f1-4d06-93ca-943d20097d37"/> + <display value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/log.txt new file mode 100644 index 00000000..2e23cb77 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/7f345cec-d2be-4d7f-b93f-5cfcfb80b8c5*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/7f345cec-d2be-4d7f-b93f-5cfcfb80b8c5*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/7f345cec-d2be-4d7f-b93f-5cfcfb80b8c5*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/output.json new file mode 100644 index 00000000..f2095835 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "d0c706f7-e781-4051-9456-daa4ce548cb9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "7f345cec-d2be-4d7f-b93f-5cfcfb80b8c5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/9bd1d645-55c2-4e47-bf21-9a6315d942e7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ec837e26-af83-4b8a-bf3d-2f5557527835" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9bd1d645-55c2-4e47-bf21-9a6315d942e7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210-78", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ec837e26-af83-4b8a-bf3d-2f5557527835", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ginger Snapp" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/output.xml new file mode 100644 index 00000000..6a4b1177 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V1_MedicationDispense_d0c706f7/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d0c706f7-e781-4051-9456-daa4ce548cb9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7f345cec-d2be-4d7f-b93f-5cfcfb80b8c5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/9bd1d645-55c2-4e47-bf21-9a6315d942e7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ec837e26-af83-4b8a-bf3d-2f5557527835"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9bd1d645-55c2-4e47-bf21-9a6315d942e7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ec837e26-af83-4b8a-bf3d-2f5557527835"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ginger Snapp"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/input.xml new file mode 100644 index 00000000..1d845070 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="22871e5b-7404-43b9-ac6f-a1addd635931"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3cf35263-531b-4fe5-8282-858c3c3a35c4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16938263"/> + </coding> + <text value="GONAL-f 150 I.E./0,25 ml Inj.Lsg."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#3cf35263-531b-4fe5-8282-858c3c3a35c4"/> + <display value="GONAL-f 150 I.E./0,25 ml Inj.Lsg."/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/log.txt new file mode 100644 index 00000000..02732b50 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/38b594d0-8d7d-48a2-b18f-db1e813ed5ab*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/38b594d0-8d7d-48a2-b18f-db1e813ed5ab*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/38b594d0-8d7d-48a2-b18f-db1e813ed5ab*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/output.json new file mode 100644 index 00000000..fee63279 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "c88dda5e-a811-4326-b7f8-76c319898e39", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "38b594d0-8d7d-48a2-b18f-db1e813ed5ab", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/3e91a763-9251-4af5-981f-c0b968c96062" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/e65ff922-455e-4f5a-af4d-946e60a37fb1" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3e91a763-9251-4af5-981f-c0b968c96062", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16938263" + } ], + "text": "GONAL-f 150 I.E./0,25 ml Inj.Lsg." + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210-78", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "e65ff922-455e-4f5a-af4d-946e60a37fb1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Al Dente" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/output.xml new file mode 100644 index 00000000..5cc7a8e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_c88dda5e/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c88dda5e-a811-4326-b7f8-76c319898e39"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="38b594d0-8d7d-48a2-b18f-db1e813ed5ab"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/3e91a763-9251-4af5-981f-c0b968c96062"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/e65ff922-455e-4f5a-af4d-946e60a37fb1"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3e91a763-9251-4af5-981f-c0b968c96062"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16938263"/> + </coding> + <text value="GONAL-f 150 I.E./0,25 ml Inj.Lsg."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e65ff922-455e-4f5a-af4d-946e60a37fb1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Al Dente"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/input.xml new file mode 100644 index 00000000..82cdb677 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="22871e5b-7404-43b9-ac6f-a1addd635931"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3cf35263-531b-4fe5-8282-858c3c3a35c4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16938263"/> + </coding> + <text value="GONAL-f 150 I.E./0,25 ml Inj.Lsg."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#3cf35263-531b-4fe5-8282-858c3c3a35c4"/> + <display value="GONAL-f 150 I.E./0,25 ml Inj.Lsg."/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/log.txt new file mode 100644 index 00000000..8fe3522b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/89cb4c1b-5b2f-4b63-bcc5-b138898b167d*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/89cb4c1b-5b2f-4b63-bcc5-b138898b167d*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/89cb4c1b-5b2f-4b63-bcc5-b138898b167d*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/output.json new file mode 100644 index 00000000..386d8cc4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "e15e0e6e-42ae-4035-9dbd-b835474ddb08", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "89cb4c1b-5b2f-4b63-bcc5-b138898b167d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/4b14fb0c-0dbb-405a-bcdc-5dd06f8abbe7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/40298bed-d56e-4658-97fd-cee3270880cd" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4b14fb0c-0dbb-405a-bcdc-5dd06f8abbe7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16938263" + } ], + "text": "GONAL-f 150 I.E./0,25 ml Inj.Lsg." + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A9876543210-78", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "40298bed-d56e-4658-97fd-cee3270880cd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hayden Seek" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/output.xml new file mode 100644 index 00000000..44a5869d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_KB_V2_MedicationDispense_e15e0e6e/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e15e0e6e-42ae-4035-9dbd-b835474ddb08"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="89cb4c1b-5b2f-4b63-bcc5-b138898b167d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/4b14fb0c-0dbb-405a-bcdc-5dd06f8abbe7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/40298bed-d56e-4658-97fd-cee3270880cd"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4b14fb0c-0dbb-405a-bcdc-5dd06f8abbe7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16938263"/> + </coding> + <text value="GONAL-f 150 I.E./0,25 ml Inj.Lsg."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A9876543210-78"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="40298bed-d56e-4658-97fd-cee3270880cd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hayden Seek"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/input.xml new file mode 100644 index 00000000..163149e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="999bde79-4aba-4b15-9615-c4adf57f0008"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="101c1c5f-3262-4013-97ba-a00850d052ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#101c1c5f-3262-4013-97ba-a00850d052ea"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/log.txt new file mode 100644 index 00000000..2ce35450 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/8a616406-e88d-4844-bd07-4f5e2cba6cc0*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/8a616406-e88d-4844-bd07-4f5e2cba6cc0*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/8a616406-e88d-4844-bd07-4f5e2cba6cc0*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/output.json new file mode 100644 index 00000000..a7dfbf3d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "ac65a7dd-0803-4ebf-aa3e-276d2b01e035", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "8a616406-e88d-4844-bd07-4f5e2cba6cc0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.010.12" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/856bf295-b6da-4246-b355-8c3aef7938a3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/94486978-ca78-462e-bbf6-a644d1ebff75" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "856bf295-b6da-4246-b355-8c3aef7938a3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "94486978-ca78-462e-bbf6-a644d1ebff75", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Haywood Jashootmee" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/output.xml new file mode 100644 index 00000000..9f9e6472 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ac65a7dd/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ac65a7dd-0803-4ebf-aa3e-276d2b01e035"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8a616406-e88d-4844-bd07-4f5e2cba6cc0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/856bf295-b6da-4246-b355-8c3aef7938a3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/94486978-ca78-462e-bbf6-a644d1ebff75"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="856bf295-b6da-4246-b355-8c3aef7938a3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="94486978-ca78-462e-bbf6-a644d1ebff75"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Haywood Jashootmee"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/input.xml new file mode 100644 index 00000000..fe68dd7e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="999bde79-4aba-4b15-9615-c4adf57f0008"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="101c1c5f-3262-4013-97ba-a00850d052ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#101c1c5f-3262-4013-97ba-a00850d052ea"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/log.txt new file mode 100644 index 00000000..fb68332f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/972ea6e6-d7fc-4def-8ce7-afb15ebecb7f*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/972ea6e6-d7fc-4def-8ce7-afb15ebecb7f*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/972ea6e6-d7fc-4def-8ce7-afb15ebecb7f*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/output.json new file mode 100644 index 00000000..9810bf5c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "ff62fffa-9658-4544-84e2-c8cceb4cd06b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "972ea6e6-d7fc-4def-8ce7-afb15ebecb7f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.010.12" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/13bd24bd-fc70-425c-915d-debc5946a3e2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f1648f87-dcd4-4857-b3d5-c428a0e42c70" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "13bd24bd-fc70-425c-915d-debc5946a3e2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f1648f87-dcd4-4857-b3d5-c428a0e42c70", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Joy Rider" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/output.xml new file mode 100644 index 00000000..42a1302a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV1_MedicationDispense_ff62fffa/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ff62fffa-9658-4544-84e2-c8cceb4cd06b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="972ea6e6-d7fc-4def-8ce7-afb15ebecb7f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/13bd24bd-fc70-425c-915d-debc5946a3e2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f1648f87-dcd4-4857-b3d5-c428a0e42c70"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="13bd24bd-fc70-425c-915d-debc5946a3e2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f1648f87-dcd4-4857-b3d5-c428a0e42c70"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Joy Rider"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/input.xml new file mode 100644 index 00000000..851c82c5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4eaadf76-d89c-4437-a8ec-b2407f98c6fa"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7bbe819b-08a0-4496-9d58-f6340c8aa876"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#7bbe819b-08a0-4496-9d58-f6340c8aa876"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2025-01-15"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/log.txt new file mode 100644 index 00000000..9f146ef5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/7171e2b6-225f-409f-bd92-197503a5efce*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/7171e2b6-225f-409f-bd92-197503a5efce*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/7171e2b6-225f-409f-bd92-197503a5efce*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/output.json new file mode 100644 index 00000000..80aaccb2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "13174b10-6f30-4563-adb1-c45bae6f6202", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "7171e2b6-225f-409f-bd92-197503a5efce", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.015.94" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b71d80a5-3152-4a05-833b-d371d0042622" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/58075cef-925a-4a85-a2ad-9afc5f652acc" + } + } ], + "whenHandedOver": "2025-01-15" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b71d80a5-3152-4a05-833b-d371d0042622", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "58075cef-925a-4a85-a2ad-9afc5f652acc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Eli Ondefloor" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/output.xml new file mode 100644 index 00000000..5195dcd2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_13174b10/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="13174b10-6f30-4563-adb1-c45bae6f6202"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7171e2b6-225f-409f-bd92-197503a5efce"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b71d80a5-3152-4a05-833b-d371d0042622"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/58075cef-925a-4a85-a2ad-9afc5f652acc"/> + </actor> + </performer> + <whenHandedOver value="2025-01-15"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b71d80a5-3152-4a05-833b-d371d0042622"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="58075cef-925a-4a85-a2ad-9afc5f652acc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Eli Ondefloor"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/input.xml new file mode 100644 index 00000000..be2f7416 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4eaadf76-d89c-4437-a8ec-b2407f98c6fa"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7bbe819b-08a0-4496-9d58-f6340c8aa876"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#7bbe819b-08a0-4496-9d58-f6340c8aa876"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-09-15"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/log.txt new file mode 100644 index 00000000..a096beae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/144cbcd5-61ad-4604-aa4e-a7ce9cc9a00b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/144cbcd5-61ad-4604-aa4e-a7ce9cc9a00b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/144cbcd5-61ad-4604-aa4e-a7ce9cc9a00b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/output.json new file mode 100644 index 00000000..84771266 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "8e9be6d3-6ce5-46ec-991e-34726bf6eaef", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "144cbcd5-61ad-4604-aa4e-a7ce9cc9a00b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.015.94" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/54e9d886-4017-4c72-ab44-11f03078af9b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/99118991-7b9a-41f5-a66b-089c7953ad1b" + } + } ], + "whenHandedOver": "2023-09-15" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "54e9d886-4017-4c72-ab44-11f03078af9b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "99118991-7b9a-41f5-a66b-089c7953ad1b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Faye Slift" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/output.xml new file mode 100644 index 00000000..6ae397ce --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV2_MedicationDispense_8e9be6d3/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8e9be6d3-6ce5-46ec-991e-34726bf6eaef"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="144cbcd5-61ad-4604-aa4e-a7ce9cc9a00b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/54e9d886-4017-4c72-ab44-11f03078af9b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/99118991-7b9a-41f5-a66b-089c7953ad1b"/> + </actor> + </performer> + <whenHandedOver value="2023-09-15"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="54e9d886-4017-4c72-ab44-11f03078af9b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="99118991-7b9a-41f5-a66b-089c7953ad1b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Faye Slift"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/input.xml new file mode 100644 index 00000000..8e6aa43c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b60dfbab-3463-4a69-81e8-90501674ffd3"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="eeba484b-996d-42cf-8152-4e6add8ff372"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#eeba484b-996d-42cf-8152-4e6add8ff372"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-11-15"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/log.txt new file mode 100644 index 00000000..971e461d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/7eda3c3a-80f0-4124-af65-ecd6811df79d*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/7eda3c3a-80f0-4124-af65-ecd6811df79d*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/7eda3c3a-80f0-4124-af65-ecd6811df79d*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/output.json new file mode 100644 index 00000000..36d00f4f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "1f2b9024-2025-45ab-b365-bd426a6e0984", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "7eda3c3a-80f0-4124-af65-ecd6811df79d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.016.91" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/38a65b8f-8b65-493c-9737-bac8fcdd7ec3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/38258594-c4f0-4179-8ae5-df9b927be563" + } + } ], + "whenHandedOver": "2023-11-15" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "38a65b8f-8b65-493c-9737-bac8fcdd7ec3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "38258594-c4f0-4179-8ae5-df9b927be563", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Dusty Rhodes" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/output.xml new file mode 100644 index 00000000..56f3446d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_1f2b9024/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1f2b9024-2025-45ab-b365-bd426a6e0984"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7eda3c3a-80f0-4124-af65-ecd6811df79d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/38a65b8f-8b65-493c-9737-bac8fcdd7ec3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/38258594-c4f0-4179-8ae5-df9b927be563"/> + </actor> + </performer> + <whenHandedOver value="2023-11-15"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="38a65b8f-8b65-493c-9737-bac8fcdd7ec3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="38258594-c4f0-4179-8ae5-df9b927be563"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Dusty Rhodes"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/input.xml new file mode 100644 index 00000000..786bbc94 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b60dfbab-3463-4a69-81e8-90501674ffd3"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="eeba484b-996d-42cf-8152-4e6add8ff372"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#eeba484b-996d-42cf-8152-4e6add8ff372"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2025-03-15"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/log.txt new file mode 100644 index 00000000..72ec7c17 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/7fdd6b29-9881-4975-bff1-6a7300b341a0*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/7fdd6b29-9881-4975-bff1-6a7300b341a0*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/7fdd6b29-9881-4975-bff1-6a7300b341a0*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/output.json new file mode 100644 index 00000000..10372f6e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "f8a54a6e-a5fd-4276-ab1e-32e6cf084871", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "7fdd6b29-9881-4975-bff1-6a7300b341a0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.016.91" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/2ca4690c-1c83-4083-a362-4b599db2cf5e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/a7571e92-b64d-4134-8b9f-824213341c08" + } + } ], + "whenHandedOver": "2025-03-15" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2ca4690c-1c83-4083-a362-4b599db2cf5e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "a7571e92-b64d-4134-8b9f-824213341c08", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Luna Tick" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/output.xml new file mode 100644 index 00000000..18808516 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV3_MedicationDispense_f8a54a6e/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f8a54a6e-a5fd-4276-ab1e-32e6cf084871"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="7fdd6b29-9881-4975-bff1-6a7300b341a0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/2ca4690c-1c83-4083-a362-4b599db2cf5e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/a7571e92-b64d-4134-8b9f-824213341c08"/> + </actor> + </performer> + <whenHandedOver value="2025-03-15"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2ca4690c-1c83-4083-a362-4b599db2cf5e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a7571e92-b64d-4134-8b9f-824213341c08"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Luna Tick"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/input.xml new file mode 100644 index 00000000..b164da80 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="6df0c60b-98ab-4c20-bb0f-31531ec0bc59"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="583aedac-bfa9-4014-9500-e2d90d294c99"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#583aedac-bfa9-4014-9500-e2d90d294c99"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2025-04-01"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/log.txt new file mode 100644 index 00000000..aadab90b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/43f2c8cc-3d20-4f5e-acf4-753d236e7337*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/43f2c8cc-3d20-4f5e-acf4-753d236e7337*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/43f2c8cc-3d20-4f5e-acf4-753d236e7337*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/output.json new file mode 100644 index 00000000..8203d1d3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "b6caabd2-77bb-4741-ad3d-6c65acd654b2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "43f2c8cc-3d20-4f5e-acf4-753d236e7337", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.017.88" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/67cbf142-073c-4909-ac83-e5e9855e4370" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/55251cba-07b5-4cea-9f36-9ff7fadfca67" + } + } ], + "whenHandedOver": "2025-04-01" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "67cbf142-073c-4909-ac83-e5e9855e4370", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "55251cba-07b5-4cea-9f36-9ff7fadfca67", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Helen Back" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/output.xml new file mode 100644 index 00000000..4fd03dd1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_b6caabd2/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b6caabd2-77bb-4741-ad3d-6c65acd654b2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="43f2c8cc-3d20-4f5e-acf4-753d236e7337"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/67cbf142-073c-4909-ac83-e5e9855e4370"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/55251cba-07b5-4cea-9f36-9ff7fadfca67"/> + </actor> + </performer> + <whenHandedOver value="2025-04-01"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="67cbf142-073c-4909-ac83-e5e9855e4370"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="55251cba-07b5-4cea-9f36-9ff7fadfca67"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Helen Back"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/input.xml new file mode 100644 index 00000000..e6e756e0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="6df0c60b-98ab-4c20-bb0f-31531ec0bc59"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="583aedac-bfa9-4014-9500-e2d90d294c99"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#583aedac-bfa9-4014-9500-e2d90d294c99"/> + <display value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-12-01"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/log.txt new file mode 100644 index 00000000..66c6dd43 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1d5f5f74-6d65-4393-ba9e-5dfdc3357e56*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1d5f5f74-6d65-4393-ba9e-5dfdc3357e56*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1d5f5f74-6d65-4393-ba9e-5dfdc3357e56*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/output.json new file mode 100644 index 00000000..c36d4a15 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "ca4f715f-1642-4768-9a55-9ddc2a2b1d3e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1d5f5f74-6d65-4393-ba9e-5dfdc3357e56", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.017.88" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/a84af732-77fc-416e-94d4-697a1255e8e4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/9de40059-de55-41e6-baf8-f85ad446fbcb" + } + } ], + "whenHandedOver": "2023-12-01" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a84af732-77fc-416e-94d4-697a1255e8e4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "9de40059-de55-41e6-baf8-f85ad446fbcb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Artie Choke" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/output.xml new file mode 100644 index 00000000..0b42104e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_MV4_MedicationDispense_ca4f715f/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ca4f715f-1642-4768-9a55-9ddc2a2b1d3e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1d5f5f74-6d65-4393-ba9e-5dfdc3357e56"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/a84af732-77fc-416e-94d4-697a1255e8e4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/9de40059-de55-41e6-baf8-f85ad446fbcb"/> + </actor> + </performer> + <whenHandedOver value="2023-12-01"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a84af732-77fc-416e-94d4-697a1255e8e4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9de40059-de55-41e6-baf8-f85ad446fbcb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Artie Choke"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/input.xml new file mode 100644 index 00000000..adae53ab --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="89a81399-b8c1-46d6-8006-d74fed2a79d4"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b6d208be-e549-4efb-a87b-77fae57fc001"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="3"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#b6d208be-e549-4efb-a87b-77fae57fc001"/> + <display value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/log.txt new file mode 100644 index 00000000..c363cd8a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/b2ee022a-f1b4-4fb0-8514-58f987d0bcce*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/b2ee022a-f1b4-4fb0-8514-58f987d0bcce*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/b2ee022a-f1b4-4fb0-8514-58f987d0bcce*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/output.json new file mode 100644 index 00000000..6234f371 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "6be89a62-e9e6-4408-86ae-6ba16caa1ec8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "b2ee022a-f1b4-4fb0-8514-58f987d0bcce", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.003.33" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/89af8c60-c97d-4ecb-bb5f-dfa133ac2792" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "M310119814" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/13568802-eddf-42ac-8564-8dc98fc25c53" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "89af8c60-c97d-4ecb-bb5f-dfa133ac2792", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03386388" + } ], + "text": "INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SUB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "3" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "13568802-eddf-42ac-8564-8dc98fc25c53", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Simon Swindells" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/output.xml new file mode 100644 index 00000000..fe353cc2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_6be89a62/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6be89a62-e9e6-4408-86ae-6ba16caa1ec8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b2ee022a-f1b4-4fb0-8514-58f987d0bcce"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/89af8c60-c97d-4ecb-bb5f-dfa133ac2792"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/13568802-eddf-42ac-8564-8dc98fc25c53"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="89af8c60-c97d-4ecb-bb5f-dfa133ac2792"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="3"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="13568802-eddf-42ac-8564-8dc98fc25c53"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Simon Swindells"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/input.xml new file mode 100644 index 00000000..89bdbf36 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="89a81399-b8c1-46d6-8006-d74fed2a79d4"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b6d208be-e549-4efb-a87b-77fae57fc001"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="3"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#b6d208be-e549-4efb-a87b-77fae57fc001"/> + <display value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/log.txt new file mode 100644 index 00000000..fad9abd1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/866773d5-b2ff-49e2-983b-0b090de00490*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/866773d5-b2ff-49e2-983b-0b090de00490*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/866773d5-b2ff-49e2-983b-0b090de00490*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/output.json new file mode 100644 index 00000000..ab1f40bf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "85f77ac6-9921-46df-984e-a1391d85fd22", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "866773d5-b2ff-49e2-983b-0b090de00490", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.003.33" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/21febbc3-1418-4141-bb12-b813561685b0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "M310119814" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/1d723ea8-452d-49e1-be02-4d37f39f82de" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "21febbc3-1418-4141-bb12-b813561685b0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03386388" + } ], + "text": "INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SUB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "3" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "1d723ea8-452d-49e1-be02-4d37f39f82de", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Stu Pitt" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/output.xml new file mode 100644 index 00000000..c6cd29a6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Noctu_MedicationDispense_85f77ac6/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="85f77ac6-9921-46df-984e-a1391d85fd22"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="866773d5-b2ff-49e2-983b-0b090de00490"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/21febbc3-1418-4141-bb12-b813561685b0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/1d723ea8-452d-49e1-be02-4d37f39f82de"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="21febbc3-1418-4141-bb12-b813561685b0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="3"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1d723ea8-452d-49e1-be02-4d37f39f82de"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Stu Pitt"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/input.xml new file mode 100644 index 00000000..5e3034e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a7e1d25f-0b0a-40f7-b529-afda48e51b46"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8e2e5e65-4c5d-49f2-8efc-c30e40838273"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05454378"/> + </coding> + <text value="SUMATRIPTAN Aurobindo 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="12"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8e2e5e65-4c5d-49f2-8efc-c30e40838273"/> + <display value="SUMATRIPTAN Aurobindo 100 mg Tabletten"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567891"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-30"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/log.txt new file mode 100644 index 00000000..2830ed42 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/c1515e45-31cf-4dc2-8c00-c4d205934bb5*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/c1515e45-31cf-4dc2-8c00-c4d205934bb5*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/c1515e45-31cf-4dc2-8c00-c4d205934bb5*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/output.json new file mode 100644 index 00000000..c8731c36 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "33953e1e-ba6f-4ad9-9d0f-3d655a48239f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "c1515e45-31cf-4dc2-8c00-c4d205934bb5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.764.737.300.50" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/41502ff4-dc48-4824-994e-10e97ed41532" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X234567891" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/676512a0-466d-4500-8570-8fef16fe4935" + } + } ], + "whenHandedOver": "2023-07-30", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "41502ff4-dc48-4824-994e-10e97ed41532", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "05454378" + } ], + "text": "SUMATRIPTAN Aurobindo 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "12" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "676512a0-466d-4500-8570-8fef16fe4935", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Alec Tricity" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/output.xml new file mode 100644 index 00000000..3a789fed --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_33953e1e/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="33953e1e-ba6f-4ad9-9d0f-3d655a48239f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c1515e45-31cf-4dc2-8c00-c4d205934bb5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/41502ff4-dc48-4824-994e-10e97ed41532"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567891"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/676512a0-466d-4500-8570-8fef16fe4935"/> + </actor> + </performer> + <whenHandedOver value="2023-07-30"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="41502ff4-dc48-4824-994e-10e97ed41532"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05454378"/> + </coding> + <text value="SUMATRIPTAN Aurobindo 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="12"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="676512a0-466d-4500-8570-8fef16fe4935"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Alec Tricity"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/input.xml new file mode 100644 index 00000000..16a19793 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a7e1d25f-0b0a-40f7-b529-afda48e51b46"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8e2e5e65-4c5d-49f2-8efc-c30e40838273"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05454378"/> + </coding> + <text value="SUMATRIPTAN Aurobindo 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="12"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8e2e5e65-4c5d-49f2-8efc-c30e40838273"/> + <display value="SUMATRIPTAN Aurobindo 100 mg Tabletten"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567891"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-30"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/log.txt new file mode 100644 index 00000000..afc229df --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/4d9b5ed7-9826-4818-bd50-98ca8a2cf00a*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/4d9b5ed7-9826-4818-bd50-98ca8a2cf00a*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/4d9b5ed7-9826-4818-bd50-98ca8a2cf00a*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/output.json new file mode 100644 index 00000000..b9e76258 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "9b57e5f0-e09e-4cf2-b025-74a1b3bb2a4b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "4d9b5ed7-9826-4818-bd50-98ca8a2cf00a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.764.737.300.50" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/59e76c04-f861-44a9-ab1e-47b60ec77373" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X234567891" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/fdc868ed-a337-48d6-8cdd-0962490a957b" + } + } ], + "whenHandedOver": "2024-11-30", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "59e76c04-f861-44a9-ab1e-47b60ec77373", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "05454378" + } ], + "text": "SUMATRIPTAN Aurobindo 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "12" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "fdc868ed-a337-48d6-8cdd-0962490a957b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Annie Moore" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/output.xml new file mode 100644 index 00000000..52e22068 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr1_MedicationDispense_9b57e5f0/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9b57e5f0-e09e-4cf2-b025-74a1b3bb2a4b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4d9b5ed7-9826-4818-bd50-98ca8a2cf00a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/59e76c04-f861-44a9-ab1e-47b60ec77373"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567891"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/fdc868ed-a337-48d6-8cdd-0962490a957b"/> + </actor> + </performer> + <whenHandedOver value="2024-11-30"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="59e76c04-f861-44a9-ab1e-47b60ec77373"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05454378"/> + </coding> + <text value="SUMATRIPTAN Aurobindo 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="12"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="fdc868ed-a337-48d6-8cdd-0962490a957b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Annie Moore"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/input.xml new file mode 100644 index 00000000..cdc7a89f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dceee4a2-12fa-44a4-8f97-60fc6a4d668e"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="40f0ab8c-1be7-423e-93e3-eda600706ca6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09494280"/> + </coding> + <text value="Venlafaxin Heumann 75 mg Tabletten, 100 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#40f0ab8c-1be7-423e-93e3-eda600706ca6"/> + <display value="Venlafaxin Heumann 75 mg Tabletten, 100 St."/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/log.txt new file mode 100644 index 00000000..5a6dca09 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/47238cf3-224e-4677-b095-6922c96ecd3b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/47238cf3-224e-4677-b095-6922c96ecd3b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/47238cf3-224e-4677-b095-6922c96ecd3b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/output.json new file mode 100644 index 00000000..3dd44fdd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "18c8a02c-6730-4e96-adbe-279e20f8270d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "47238cf3-224e-4677-b095-6922c96ecd3b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.001.39" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/27f6eae6-4e18-4839-b311-5f60bd4062fc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/18310233-3392-425b-b64c-8efa520fb236" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "27f6eae6-4e18-4839-b311-5f60bd4062fc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09494280" + } ], + "text": "Venlafaxin Heumann 75 mg Tabletten, 100 St." + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "18310233-3392-425b-b64c-8efa520fb236", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Melanie Letters" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/output.xml new file mode 100644 index 00000000..ec9a359d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_18c8a02c/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="18c8a02c-6730-4e96-adbe-279e20f8270d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="47238cf3-224e-4677-b095-6922c96ecd3b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/27f6eae6-4e18-4839-b311-5f60bd4062fc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/18310233-3392-425b-b64c-8efa520fb236"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="27f6eae6-4e18-4839-b311-5f60bd4062fc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09494280"/> + </coding> + <text value="Venlafaxin Heumann 75 mg Tabletten, 100 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="18310233-3392-425b-b64c-8efa520fb236"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Melanie Letters"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/input.xml new file mode 100644 index 00000000..4da1859c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dceee4a2-12fa-44a4-8f97-60fc6a4d668e"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="40f0ab8c-1be7-423e-93e3-eda600706ca6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09494280"/> + </coding> + <text value="Venlafaxin Heumann 75 mg Tabletten, 100 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#40f0ab8c-1be7-423e-93e3-eda600706ca6"/> + <display value="Venlafaxin Heumann 75 mg Tabletten, 100 St."/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/log.txt new file mode 100644 index 00000000..4670a107 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/3b930a1a-2857-4cf7-b64f-7dc34598c851*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/3b930a1a-2857-4cf7-b64f-7dc34598c851*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/3b930a1a-2857-4cf7-b64f-7dc34598c851*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/output.json new file mode 100644 index 00000000..46a0a7ca --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "e8ef58d9-c033-4e9d-b9d0-4640df047ffd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "3b930a1a-2857-4cf7-b64f-7dc34598c851", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.001.39" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/0a6fb6ec-4b2f-420a-ac35-018f3a11f699" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c251dab5-bb8a-4ba8-9a54-5bde3ad8ba8c" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0a6fb6ec-4b2f-420a-ac35-018f3a11f699", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09494280" + } ], + "text": "Venlafaxin Heumann 75 mg Tabletten, 100 St." + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c251dab5-bb8a-4ba8-9a54-5bde3ad8ba8c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Theresa Green" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/output.xml new file mode 100644 index 00000000..329dd18c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr2_MedicationDispense_e8ef58d9/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e8ef58d9-c033-4e9d-b9d0-4640df047ffd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3b930a1a-2857-4cf7-b64f-7dc34598c851"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/0a6fb6ec-4b2f-420a-ac35-018f3a11f699"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c251dab5-bb8a-4ba8-9a54-5bde3ad8ba8c"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0a6fb6ec-4b2f-420a-ac35-018f3a11f699"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09494280"/> + </coding> + <text value="Venlafaxin Heumann 75 mg Tabletten, 100 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c251dab5-bb8a-4ba8-9a54-5bde3ad8ba8c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Theresa Green"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/input.xml new file mode 100644 index 00000000..efbade8e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c0e79dec-eeea-4777-9591-7d62ec49cadc"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="77010a0a-b0ce-4905-9a7a-a5efc41774b1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="28"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#77010a0a-b0ce-4905-9a7a-a5efc41774b1"/> + <display value="Januvia® 50 mg 28 Filmtabletten N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/log.txt new file mode 100644 index 00000000..12582939 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/ca096820-d3c3-4824-9e47-77a2329f3809*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/ca096820-d3c3-4824-9e47-77a2329f3809*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/ca096820-d3c3-4824-9e47-77a2329f3809*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/output.json new file mode 100644 index 00000000..cd047293 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "010703d3-f438-4dca-8499-2392514be15c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "ca096820-d3c3-4824-9e47-77a2329f3809", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.006.24" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/cf49c46a-522b-4a6e-a806-93c78005478b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/4dc6123e-48b9-4ca7-a2e0-1b8b7abe466b" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "cf49c46a-522b-4a6e-a806-93c78005478b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00814665" + } ], + "text": "Januvia® 50 mg 28 Filmtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "28" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "4dc6123e-48b9-4ca7-a2e0-1b8b7abe466b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Harry R. M. Pitts" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/output.xml new file mode 100644 index 00000000..ab8459bf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_010703d3/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="010703d3-f438-4dca-8499-2392514be15c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ca096820-d3c3-4824-9e47-77a2329f3809"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/cf49c46a-522b-4a6e-a806-93c78005478b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/4dc6123e-48b9-4ca7-a2e0-1b8b7abe466b"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cf49c46a-522b-4a6e-a806-93c78005478b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="28"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4dc6123e-48b9-4ca7-a2e0-1b8b7abe466b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Harry R. M. Pitts"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/input.xml new file mode 100644 index 00000000..d11ccdc4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c0e79dec-eeea-4777-9591-7d62ec49cadc"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="77010a0a-b0ce-4905-9a7a-a5efc41774b1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="28"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#77010a0a-b0ce-4905-9a7a-a5efc41774b1"/> + <display value="Januvia® 50 mg 28 Filmtabletten N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/log.txt new file mode 100644 index 00000000..db72c16a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/426c9227-f02d-4cc2-b967-bbd752d8fe41*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/426c9227-f02d-4cc2-b967-bbd752d8fe41*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/426c9227-f02d-4cc2-b967-bbd752d8fe41*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/output.json new file mode 100644 index 00000000..f0bc0bb2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "1c8e47c9-2fc3-4885-92b0-ed94706a711a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "426c9227-f02d-4cc2-b967-bbd752d8fe41", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.006.24" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/35b3bff8-cc86-4188-b59f-32d9efbc28d2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c250899b-98fb-4849-aa04-0d599fba33cd" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "35b3bff8-cc86-4188-b59f-32d9efbc28d2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00814665" + } ], + "text": "Januvia® 50 mg 28 Filmtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "28" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c250899b-98fb-4849-aa04-0d599fba33cd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Shirley U. Jest" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/output.xml new file mode 100644 index 00000000..45c3b4ff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr3_MedicationDispense_1c8e47c9/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1c8e47c9-2fc3-4885-92b0-ed94706a711a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="426c9227-f02d-4cc2-b967-bbd752d8fe41"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/35b3bff8-cc86-4188-b59f-32d9efbc28d2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c250899b-98fb-4849-aa04-0d599fba33cd"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="35b3bff8-cc86-4188-b59f-32d9efbc28d2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="28"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c250899b-98fb-4849-aa04-0d599fba33cd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Shirley U. Jest"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/input.xml new file mode 100644 index 00000000..a9aa6928 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b78b76bd-3645-4ce0-b907-bd02504c26cd"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c639211d-3a68-4f86-bf15-5e867b48973e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#c639211d-3a68-4f86-bf15-5e867b48973e"/> + <display value="Prospan® Hustensaft 100ml N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/log.txt new file mode 100644 index 00000000..dd76c5f6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/22308cae-24b1-4e3b-952e-94de203299e5*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/22308cae-24b1-4e3b-952e-94de203299e5*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/22308cae-24b1-4e3b-952e-94de203299e5*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/output.json new file mode 100644 index 00000000..f5296e65 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "23d1bb9f-11ad-4f2d-9d72-fcd6d7418c49", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "22308cae-24b1-4e3b-952e-94de203299e5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.002.36" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/9df83391-9e3d-4fcd-8229-e625c8b8373e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "M310119802" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/a8515f0d-698b-4cd1-8a0b-7338f0c1501b" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "2mal tägl. 5ml" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9df83391-9e3d-4fcd-8229-e625c8b8373e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08585997" + } ], + "text": "Prospan® Hustensaft 100ml N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FLE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "a8515f0d-698b-4cd1-8a0b-7338f0c1501b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Mort Tallity" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/output.xml new file mode 100644 index 00000000..59c260c0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_23d1bb9f/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="23d1bb9f-11ad-4f2d-9d72-fcd6d7418c49"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="22308cae-24b1-4e3b-952e-94de203299e5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/9df83391-9e3d-4fcd-8229-e625c8b8373e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/a8515f0d-698b-4cd1-8a0b-7338f0c1501b"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9df83391-9e3d-4fcd-8229-e625c8b8373e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a8515f0d-698b-4cd1-8a0b-7338f0c1501b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Mort Tallity"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/input.xml new file mode 100644 index 00000000..fab98af5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b78b76bd-3645-4ce0-b907-bd02504c26cd"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c639211d-3a68-4f86-bf15-5e867b48973e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#c639211d-3a68-4f86-bf15-5e867b48973e"/> + <display value="Prospan® Hustensaft 100ml N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/log.txt new file mode 100644 index 00000000..e4e122a6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/4e0ff789-fd33-4913-bfe7-df8bca9f9e73*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/4e0ff789-fd33-4913-bfe7-df8bca9f9e73*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/4e0ff789-fd33-4913-bfe7-df8bca9f9e73*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/output.json new file mode 100644 index 00000000..1ce3076a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "53bf9d9a-9240-4c7f-b9a6-6136f4041c8c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "4e0ff789-fd33-4913-bfe7-df8bca9f9e73", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.002.36" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/0331f3c7-ceb7-498d-af81-59cba8818669" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "M310119802" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/95d7fc24-0569-498b-a633-a89659381f6e" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "2mal tägl. 5ml" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0331f3c7-ceb7-498d-af81-59cba8818669", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08585997" + } ], + "text": "Prospan® Hustensaft 100ml N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FLE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "95d7fc24-0569-498b-a633-a89659381f6e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "I. P. Freely" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/output.xml new file mode 100644 index 00000000..314d8516 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr4_MedicationDispense_53bf9d9a/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="53bf9d9a-9240-4c7f-b9a6-6136f4041c8c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="4e0ff789-fd33-4913-bfe7-df8bca9f9e73"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/0331f3c7-ceb7-498d-af81-59cba8818669"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/95d7fc24-0569-498b-a633-a89659381f6e"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0331f3c7-ceb7-498d-af81-59cba8818669"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="95d7fc24-0569-498b-a633-a89659381f6e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="I. P. Freely"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/input.xml new file mode 100644 index 00000000..c14533b3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="61cbdbb3-c397-4e6d-909f-7b0dc520177c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7167febd-5c16-4d20-981a-ba5268dbbd0d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06977931"/> + </coding> + <text value="ACICLOVIR 800 Heumann Tabletten (35 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="35"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#7167febd-5c16-4d20-981a-ba5268dbbd0d"/> + <display value="ACICLOVIR 800 Heumann Tabletten (35 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/log.txt new file mode 100644 index 00000000..8dc1f34e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/6d312a53-e402-4eb3-943e-d29c27e66cff*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/6d312a53-e402-4eb3-943e-d29c27e66cff*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/6d312a53-e402-4eb3-943e-d29c27e66cff*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/output.json new file mode 100644 index 00000000..7802822f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "2d57a72a-fab7-433e-a9a8-65cbe97432ce", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "6d312a53-e402-4eb3-943e-d29c27e66cff", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.014.97" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/aaa93c60-4721-4618-ba5a-ef4310376e27" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/e60a108a-3c5a-4a16-8e03-71b1ca6904cd" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "aaa93c60-4721-4618-ba5a-ef4310376e27", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06977931" + } ], + "text": "ACICLOVIR 800 Heumann Tabletten (35 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "35" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "e60a108a-3c5a-4a16-8e03-71b1ca6904cd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Holly Wood" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/output.xml new file mode 100644 index 00000000..44da0cec --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_2d57a72a/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2d57a72a-fab7-433e-a9a8-65cbe97432ce"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="6d312a53-e402-4eb3-943e-d29c27e66cff"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/aaa93c60-4721-4618-ba5a-ef4310376e27"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/e60a108a-3c5a-4a16-8e03-71b1ca6904cd"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aaa93c60-4721-4618-ba5a-ef4310376e27"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06977931"/> + </coding> + <text value="ACICLOVIR 800 Heumann Tabletten (35 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="35"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e60a108a-3c5a-4a16-8e03-71b1ca6904cd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Holly Wood"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/input.xml new file mode 100644 index 00000000..8360506a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="61cbdbb3-c397-4e6d-909f-7b0dc520177c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7167febd-5c16-4d20-981a-ba5268dbbd0d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06977931"/> + </coding> + <text value="ACICLOVIR 800 Heumann Tabletten (35 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="35"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#7167febd-5c16-4d20-981a-ba5268dbbd0d"/> + <display value="ACICLOVIR 800 Heumann Tabletten (35 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/log.txt new file mode 100644 index 00000000..195bbc24 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/8281b740-fe80-410a-b053-3377286fda5f*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/8281b740-fe80-410a-b053-3377286fda5f*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/8281b740-fe80-410a-b053-3377286fda5f*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/output.json new file mode 100644 index 00000000..d93d1af0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "45961b32-babc-498e-8224-9482d38093ea", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "8281b740-fe80-410a-b053-3377286fda5f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.014.97" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/2b923de0-a85c-4d2a-8c3d-fd926a0d693a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/39fd84ae-4fef-4490-a6f3-8d166e928736" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2b923de0-a85c-4d2a-8c3d-fd926a0d693a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06977931" + } ], + "text": "ACICLOVIR 800 Heumann Tabletten (35 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "35" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "39fd84ae-4fef-4490-a6f3-8d166e928736", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Douglas Furr" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/output.xml new file mode 100644 index 00000000..dba96b02 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr5_MedicationDispense_45961b32/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="45961b32-babc-498e-8224-9482d38093ea"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="8281b740-fe80-410a-b053-3377286fda5f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/2b923de0-a85c-4d2a-8c3d-fd926a0d693a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/39fd84ae-4fef-4490-a6f3-8d166e928736"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2b923de0-a85c-4d2a-8c3d-fd926a0d693a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06977931"/> + </coding> + <text value="ACICLOVIR 800 Heumann Tabletten (35 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="35"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="39fd84ae-4fef-4490-a6f3-8d166e928736"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Douglas Furr"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/input.xml new file mode 100644 index 00000000..ed65d266 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f2a598ff-7847-4f23-95ac-3c4338e88055"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c6d021de-9939-4631-a79b-fb0093ce1361"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#c6d021de-9939-4631-a79b-fb0093ce1361"/> + <display value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/log.txt new file mode 100644 index 00000000..fcb0611a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/9def173b-318c-4504-bea8-e163cdf6ae08*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/9def173b-318c-4504-bea8-e163cdf6ae08*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/9def173b-318c-4504-bea8-e163cdf6ae08*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/output.json new file mode 100644 index 00000000..b4a7b5d2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "96ee4a1e-1ca5-4bf2-9167-ce96cc31964e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "9def173b-318c-4504-bea8-e163cdf6ae08", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.011.09" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b05dabcd-cba3-4b4a-8903-a229fce54747" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "P223331978" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/8410775b-b8bf-4c38-b535-946d3b56029c" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b05dabcd-cba3-4b4a-8903-a229fce54747", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04773414" + } ], + "text": "Doxycyclin AL 200 T, 10 Tabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "8410775b-b8bf-4c38-b535-946d3b56029c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Tom Katt" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/output.xml new file mode 100644 index 00000000..1ad3e74c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_96ee4a1e/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="96ee4a1e-1ca5-4bf2-9167-ce96cc31964e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="9def173b-318c-4504-bea8-e163cdf6ae08"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b05dabcd-cba3-4b4a-8903-a229fce54747"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/8410775b-b8bf-4c38-b535-946d3b56029c"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b05dabcd-cba3-4b4a-8903-a229fce54747"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8410775b-b8bf-4c38-b535-946d3b56029c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Tom Katt"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/input.xml new file mode 100644 index 00000000..0a91b55e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f2a598ff-7847-4f23-95ac-3c4338e88055"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c6d021de-9939-4631-a79b-fb0093ce1361"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#c6d021de-9939-4631-a79b-fb0093ce1361"/> + <display value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/log.txt new file mode 100644 index 00000000..5ccf5eb9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/500176e8-0bca-448c-91e1-fa4dc18a37be*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/500176e8-0bca-448c-91e1-fa4dc18a37be*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/500176e8-0bca-448c-91e1-fa4dc18a37be*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/output.json new file mode 100644 index 00000000..657c3df7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "bf7af439-d8f1-44ad-846c-8e4de9838c66", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "500176e8-0bca-448c-91e1-fa4dc18a37be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.011.09" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/bc1b7ea2-c598-422b-9f57-12d903e8bc58" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "P223331978" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f81f85cb-4191-49e9-b963-54ddf44c623e" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bc1b7ea2-c598-422b-9f57-12d903e8bc58", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04773414" + } ], + "text": "Doxycyclin AL 200 T, 10 Tabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f81f85cb-4191-49e9-b963-54ddf44c623e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Buddy Booth" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/output.xml new file mode 100644 index 00000000..08a00514 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr6_MedicationDispense_bf7af439/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bf7af439-d8f1-44ad-846c-8e4de9838c66"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="500176e8-0bca-448c-91e1-fa4dc18a37be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/bc1b7ea2-c598-422b-9f57-12d903e8bc58"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f81f85cb-4191-49e9-b963-54ddf44c623e"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bc1b7ea2-c598-422b-9f57-12d903e8bc58"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f81f85cb-4191-49e9-b963-54ddf44c623e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Buddy Booth"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/input.xml new file mode 100644 index 00000000..ee2afe3b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="e378bc5a-552f-4151-a072-366d4a9f6cec"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="01417220-0b1b-4a4f-b29b-c127341a5059"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01288434"/> + </coding> + <text value="Atmadisc 50 μg/250 μg Diskus Inh.-Pulver"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#01417220-0b1b-4a4f-b29b-c127341a5059"/> + <display value="Atmadisc 50 μg/250 μg Diskus Inh.-Pulver"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/log.txt new file mode 100644 index 00000000..72406fdc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/642f7bf6-c875-4dca-b341-4f25535cb144*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/642f7bf6-c875-4dca-b341-4f25535cb144*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/642f7bf6-c875-4dca-b341-4f25535cb144*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/output.json new file mode 100644 index 00000000..fb0cee2d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "0c8edd57-405f-4073-b06f-6fd0274a4ecd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "642f7bf6-c875-4dca-b341-4f25535cb144", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.004.30" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/1bb60fc7-0836-4f11-87de-6b69d95c2c66" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ff05ec20-5d4a-4717-b67c-38b26dcaddbb" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1bb60fc7-0836-4f11-87de-6b69d95c2c66", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01288434" + } ], + "text": "Atmadisc 50 μg/250 μg Diskus Inh.-Pulver" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Diskus" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ff05ec20-5d4a-4717-b67c-38b26dcaddbb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ali Katt" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/output.xml new file mode 100644 index 00000000..13c84a07 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_0c8edd57/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0c8edd57-405f-4073-b06f-6fd0274a4ecd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="642f7bf6-c875-4dca-b341-4f25535cb144"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/1bb60fc7-0836-4f11-87de-6b69d95c2c66"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ff05ec20-5d4a-4717-b67c-38b26dcaddbb"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1bb60fc7-0836-4f11-87de-6b69d95c2c66"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01288434"/> + </coding> + <text value="Atmadisc 50 μg/250 μg Diskus Inh.-Pulver"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ff05ec20-5d4a-4717-b67c-38b26dcaddbb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ali Katt"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/input.xml new file mode 100644 index 00000000..c76af2c8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="e378bc5a-552f-4151-a072-366d4a9f6cec"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="01417220-0b1b-4a4f-b29b-c127341a5059"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01288434"/> + </coding> + <text value="Atmadisc 50 μg/250 μg Diskus Inh.-Pulver"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#01417220-0b1b-4a4f-b29b-c127341a5059"/> + <display value="Atmadisc 50 μg/250 μg Diskus Inh.-Pulver"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/log.txt new file mode 100644 index 00000000..bd01f522 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/e9f8a22e-ca4a-44c5-9cb5-ffbea1484071*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/e9f8a22e-ca4a-44c5-9cb5-ffbea1484071*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/e9f8a22e-ca4a-44c5-9cb5-ffbea1484071*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/output.json new file mode 100644 index 00000000..fdb515d1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "2e46d353-7ccf-4865-bc96-697f1842df3f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "e9f8a22e-ca4a-44c5-9cb5-ffbea1484071", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.004.30" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/06d34220-2ac0-4d92-998a-71597313b5e6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/0faea340-38c8-40e3-b54a-7a87b9e4d278" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "06d34220-2ac0-4d92-998a-71597313b5e6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01288434" + } ], + "text": "Atmadisc 50 μg/250 μg Diskus Inh.-Pulver" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Diskus" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "0faea340-38c8-40e3-b54a-7a87b9e4d278", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sue Jeu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/output.xml new file mode 100644 index 00000000..3e6e58d7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr7_MedicationDispense_2e46d353/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2e46d353-7ccf-4865-bc96-697f1842df3f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="e9f8a22e-ca4a-44c5-9cb5-ffbea1484071"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/06d34220-2ac0-4d92-998a-71597313b5e6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/0faea340-38c8-40e3-b54a-7a87b9e4d278"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="06d34220-2ac0-4d92-998a-71597313b5e6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01288434"/> + </coding> + <text value="Atmadisc 50 μg/250 μg Diskus Inh.-Pulver"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0faea340-38c8-40e3-b54a-7a87b9e4d278"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sue Jeu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/input.xml new file mode 100644 index 00000000..b23829e6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c9455210-4f8b-48c7-8b4a-38b46dd52dff"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8b28704d-cb7d-487b-ac10-837d84adad69"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00629028"/> + </coding> + <text value="Losartan Atid 100 mg Filmtabletten, 98 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="98"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8b28704d-cb7d-487b-ac10-837d84adad69"/> + <display value="Losartan Atid 100 mg Filmtabletten, 98 St."/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/log.txt new file mode 100644 index 00000000..6174ea5b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5ad430cb-167d-459d-bef6-b6f063783c3d*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5ad430cb-167d-459d-bef6-b6f063783c3d*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5ad430cb-167d-459d-bef6-b6f063783c3d*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/output.json new file mode 100644 index 00000000..77fde8c1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "08300ec5-021d-489d-bcc6-55d4a00a3023", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5ad430cb-167d-459d-bef6-b6f063783c3d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.012.06" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/b1dfe99c-b0d7-40db-bb82-503edd24ce22" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/297f3f96-832b-40bd-bee8-2f71ca3898dc" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b1dfe99c-b0d7-40db-bb82-503edd24ce22", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00629028" + } ], + "text": "Losartan Atid 100 mg Filmtabletten, 98 St." + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "98" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "297f3f96-832b-40bd-bee8-2f71ca3898dc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Woody U. No" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/output.xml new file mode 100644 index 00000000..fa88a6c9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_08300ec5/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="08300ec5-021d-489d-bcc6-55d4a00a3023"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5ad430cb-167d-459d-bef6-b6f063783c3d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/b1dfe99c-b0d7-40db-bb82-503edd24ce22"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/297f3f96-832b-40bd-bee8-2f71ca3898dc"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b1dfe99c-b0d7-40db-bb82-503edd24ce22"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00629028"/> + </coding> + <text value="Losartan Atid 100 mg Filmtabletten, 98 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="98"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="297f3f96-832b-40bd-bee8-2f71ca3898dc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Woody U. No"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/input.xml new file mode 100644 index 00000000..6323303e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c9455210-4f8b-48c7-8b4a-38b46dd52dff"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8b28704d-cb7d-487b-ac10-837d84adad69"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00629028"/> + </coding> + <text value="Losartan Atid 100 mg Filmtabletten, 98 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="98"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8b28704d-cb7d-487b-ac10-837d84adad69"/> + <display value="Losartan Atid 100 mg Filmtabletten, 98 St."/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/log.txt new file mode 100644 index 00000000..109ef5e8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/784d8470-4d5f-4ea7-935b-95b32dd79a34*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/784d8470-4d5f-4ea7-935b-95b32dd79a34*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/784d8470-4d5f-4ea7-935b-95b32dd79a34*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/output.json new file mode 100644 index 00000000..277ec767 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "c882728b-9c8f-4325-b317-ac44db7e492d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "784d8470-4d5f-4ea7-935b-95b32dd79a34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.012.06" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/4db80efc-21f6-4c22-bf47-4fb7cbcf1f4e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/eee9e62d-5a9d-4a65-832b-531967b81764" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4db80efc-21f6-4c22-bf47-4fb7cbcf1f4e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00629028" + } ], + "text": "Losartan Atid 100 mg Filmtabletten, 98 St." + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "98" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "eee9e62d-5a9d-4a65-832b-531967b81764", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Marsha Mellow" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/output.xml new file mode 100644 index 00000000..33e3afe5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Nr8_MedicationDispense_c882728b/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c882728b-9c8f-4325-b317-ac44db7e492d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="784d8470-4d5f-4ea7-935b-95b32dd79a34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/4db80efc-21f6-4c22-bf47-4fb7cbcf1f4e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/eee9e62d-5a9d-4a65-832b-531967b81764"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4db80efc-21f6-4c22-bf47-4fb7cbcf1f4e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00629028"/> + </coding> + <text value="Losartan Atid 100 mg Filmtabletten, 98 St."/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="98"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="eee9e62d-5a9d-4a65-832b-531967b81764"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Marsha Mellow"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/input.xml new file mode 100644 index 00000000..c4e30411 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="37d8e326-e355-4732-be64-aca54cfdc71d"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f1620991-8025-49d4-8fe5-bf4afd43ba09"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#f1620991-8025-49d4-8fe5-bf4afd43ba09"/> + <display value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/log.txt new file mode 100644 index 00000000..2aebb344 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/53af959a-85b3-4f6c-9749-57931a7cb3e2*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/53af959a-85b3-4f6c-9749-57931a7cb3e2*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/53af959a-85b3-4f6c-9749-57931a7cb3e2*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/output.json new file mode 100644 index 00000000..2a2edaeb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "1c30eb50-0a46-4942-a3f5-8ac4c88da4cf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "53af959a-85b3-4f6c-9749-57931a7cb3e2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.005.27" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/37ecd228-c98d-4172-8abd-0554911ba2eb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/d71c08a1-87c9-4682-ba48-04cdce0bd385" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "bis zu 4mal täglich je 20-40 Tropfen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "37ecd228-c98d-4172-8abd-0554911ba2eb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03507952" + } ], + "text": "Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TEI" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "d71c08a1-87c9-4682-ba48-04cdce0bd385", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Dusty Rhodes" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/output.xml new file mode 100644 index 00000000..a49952ea --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_1c30eb50/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1c30eb50-0a46-4942-a3f5-8ac4c88da4cf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="53af959a-85b3-4f6c-9749-57931a7cb3e2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/37ecd228-c98d-4172-8abd-0554911ba2eb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/d71c08a1-87c9-4682-ba48-04cdce0bd385"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="37ecd228-c98d-4172-8abd-0554911ba2eb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d71c08a1-87c9-4682-ba48-04cdce0bd385"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Dusty Rhodes"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/input.xml new file mode 100644 index 00000000..30330522 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="37d8e326-e355-4732-be64-aca54cfdc71d"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f1620991-8025-49d4-8fe5-bf4afd43ba09"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#f1620991-8025-49d4-8fe5-bf4afd43ba09"/> + <display value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/log.txt new file mode 100644 index 00000000..d354fb89 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/c93767d3-651f-4a21-bf76-39027ced652a*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/c93767d3-651f-4a21-bf76-39027ced652a*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/c93767d3-651f-4a21-bf76-39027ced652a*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/output.json new file mode 100644 index 00000000..04c4d6b2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "c1fb48a7-6708-48bd-afc8-d99ce25ad8d3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "c93767d3-651f-4a21-bf76-39027ced652a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.005.27" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f8690ac9-20f1-41b8-8d28-c49410da34c7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/51afd505-fa54-4ab0-92c4-4824dd9f10e0" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "bis zu 4mal täglich je 20-40 Tropfen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f8690ac9-20f1-41b8-8d28-c49410da34c7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03507952" + } ], + "text": "Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TEI" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "51afd505-fa54-4ab0-92c4-4824dd9f10e0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Tina See" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/output.xml new file mode 100644 index 00000000..1dc25865 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_Unfall_MedicationDispense_c1fb48a7/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c1fb48a7-6708-48bd-afc8-d99ce25ad8d3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c93767d3-651f-4a21-bf76-39027ced652a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f8690ac9-20f1-41b8-8d28-c49410da34c7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/51afd505-fa54-4ab0-92c4-4824dd9f10e0"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f8690ac9-20f1-41b8-8d28-c49410da34c7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="51afd505-fa54-4ab0-92c4-4824dd9f10e0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Tina See"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/input.xml new file mode 100644 index 00000000..22920c70 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c85a4b74-bd21-4249-8395-d4eb773610c9"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1ac4a722-e9dd-459f-9498-117c3fd5a194"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="70"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#1ac4a722-e9dd-459f-9498-117c3fd5a194"/> + <display value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/log.txt new file mode 100644 index 00000000..b721f344 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/0a9b8edb-5b4d-4e5d-9398-1c781bd5b979*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/0a9b8edb-5b4d-4e5d-9398-1c781bd5b979*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/0a9b8edb-5b4d-4e5d-9398-1c781bd5b979*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/output.json new file mode 100644 index 00000000..6dbf9a7d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "c63f83a3-fe22-4651-a0b4-d3defff2f88f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "0a9b8edb-5b4d-4e5d-9398-1c781bd5b979", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.21" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/51041836-c99d-4bef-b9ee-094655fbf62f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/e872fc1d-68ae-44c1-8923-061200312bae" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1x täglich" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "51041836-c99d-4bef-b9ee-094655fbf62f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08850519" + } ], + "text": "Olanzapin Heumann 20mg 70 Schmelztbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SMT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "70" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "e872fc1d-68ae-44c1-8923-061200312bae", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Brandon Irons" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/output.xml new file mode 100644 index 00000000..67eb5bb7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_c63f83a3/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c63f83a3-fe22-4651-a0b4-d3defff2f88f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="0a9b8edb-5b4d-4e5d-9398-1c781bd5b979"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/51041836-c99d-4bef-b9ee-094655fbf62f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/e872fc1d-68ae-44c1-8923-061200312bae"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="51041836-c99d-4bef-b9ee-094655fbf62f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="70"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e872fc1d-68ae-44c1-8923-061200312bae"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Brandon Irons"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/input.xml new file mode 100644 index 00000000..762a69ad --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c85a4b74-bd21-4249-8395-d4eb773610c9"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1ac4a722-e9dd-459f-9498-117c3fd5a194"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="70"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#1ac4a722-e9dd-459f-9498-117c3fd5a194"/> + <display value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/log.txt new file mode 100644 index 00000000..b52099e8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/00b5934c-898a-4cb9-81bc-73381f3f9e37*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/00b5934c-898a-4cb9-81bc-73381f3f9e37*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/00b5934c-898a-4cb9-81bc-73381f3f9e37*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/output.json new file mode 100644 index 00000000..5195be67 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "fada6955-ccd9-4cc2-a5f4-8c7de256fe20", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "00b5934c-898a-4cb9-81bc-73381f3f9e37", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.21" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/50abf086-8042-496f-a45c-fb5bc7dbfb56" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "S040464113" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/7bdf2bec-fc80-4451-aa6f-9d7b48a9d33d" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1x täglich" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "50abf086-8042-496f-a45c-fb5bc7dbfb56", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08850519" + } ], + "text": "Olanzapin Heumann 20mg 70 Schmelztbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SMT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "70" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "7bdf2bec-fc80-4451-aa6f-9d7b48a9d33d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Justin Tune" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/output.xml new file mode 100644 index 00000000..a856e4d1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/PZN_aut_idem_MedicationDispense_fada6955/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fada6955-ccd9-4cc2-a5f4-8c7de256fe20"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="00b5934c-898a-4cb9-81bc-73381f3f9e37"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/50abf086-8042-496f-a45c-fb5bc7dbfb56"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/7bdf2bec-fc80-4451-aa6f-9d7b48a9d33d"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="50abf086-8042-496f-a45c-fb5bc7dbfb56"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="70"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="7bdf2bec-fc80-4451-aa6f-9d7b48a9d33d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Justin Tune"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/input.xml new file mode 100644 index 00000000..53d7d318 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/input.xml @@ -0,0 +1,60 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a8df5484-df7e-41fc-870d-2c4edb8a89ad"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="30724002-2ba6-464e-92d2-463bb1117aed"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)"/> + </code> + <form> + <text value="Lösung"/> + </form> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#30724002-2ba6-464e-92d2-463bb1117aed"/> + <display value="100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/log.txt new file mode 100644 index 00000000..01f7d8c5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/fe2ecd29-5e82-43c0-92d2-b19191a6c017*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/fe2ecd29-5e82-43c0-92d2-b19191a6c017*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/fe2ecd29-5e82-43c0-92d2-b19191a6c017*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/output.json new file mode 100644 index 00000000..f521246e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/output.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "d8994a8a-44e6-4d79-9e17-50e85d70e330", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "fe2ecd29-5e82-43c0-92d2-b19191a6c017", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.024.67" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/77d7f967-0aa7-4c4f-a46e-db5f9ce3d8de" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/8d41fc3c-b0b0-4ca7-b0fb-4d4d647dcb0a" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1–3mal/Tag auf die erkrankten Hautstellen auftragen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "77d7f967-0aa7-4c4f-a46e-db5f9ce3d8de", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)" + }, + "form": { + "text": "Lösung" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "8d41fc3c-b0b0-4ca7-b0fb-4d4d647dcb0a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Colin Allcars" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/output.xml new file mode 100644 index 00000000..f204612f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_d8994a8a/output.xml @@ -0,0 +1,102 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d8994a8a-44e6-4d79-9e17-50e85d70e330"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="fe2ecd29-5e82-43c0-92d2-b19191a6c017"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/77d7f967-0aa7-4c4f-a46e-db5f9ce3d8de"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/8d41fc3c-b0b0-4ca7-b0fb-4d4d647dcb0a"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="77d7f967-0aa7-4c4f-a46e-db5f9ce3d8de"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)"/> + </code> + <form> + <text value="Lösung"/> + </form> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8d41fc3c-b0b0-4ca7-b0fb-4d4d647dcb0a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Colin Allcars"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/input.xml new file mode 100644 index 00000000..2088cd97 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/input.xml @@ -0,0 +1,60 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="a8df5484-df7e-41fc-870d-2c4edb8a89ad"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="30724002-2ba6-464e-92d2-463bb1117aed"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)"/> + </code> + <form> + <text value="Lösung"/> + </form> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#30724002-2ba6-464e-92d2-463bb1117aed"/> + <display value="100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/log.txt new file mode 100644 index 00000000..f6fc0750 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/bb2c462a-e97a-4055-a699-3dfc90d9c70c*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/bb2c462a-e97a-4055-a699-3dfc90d9c70c*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/bb2c462a-e97a-4055-a699-3dfc90d9c70c*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/output.json new file mode 100644 index 00000000..9d711356 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/output.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "f4875d9c-1780-4fb8-84d7-0d03ad73fa30", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "bb2c462a-e97a-4055-a699-3dfc90d9c70c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.024.67" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/3c6538b2-7026-449a-988b-4fd98af27a7f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220645122" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ab507345-375a-46d3-8cf5-68afe04141ff" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1–3mal/Tag auf die erkrankten Hautstellen auftragen" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3c6538b2-7026-449a-988b-4fd98af27a7f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)" + }, + "form": { + "text": "Lösung" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ab507345-375a-46d3-8cf5-68afe04141ff", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Jim Shu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/output.xml new file mode 100644 index 00000000..6eba7738 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_Nr1_MedicationDispense_f4875d9c/output.xml @@ -0,0 +1,102 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f4875d9c-1780-4fb8-84d7-0d03ad73fa30"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="bb2c462a-e97a-4055-a699-3dfc90d9c70c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.024.67"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/3c6538b2-7026-449a-988b-4fd98af27a7f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ab507345-375a-46d3-8cf5-68afe04141ff"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1–3mal/Tag auf die erkrankten Hautstellen auftragen"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3c6538b2-7026-449a-988b-4fd98af27a7f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="100 ml Lösung (Salicylsäure 5 g, 2-propanol 70 % Ad 100 g)"/> + </code> + <form> + <text value="Lösung"/> + </form> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ab507345-375a-46d3-8cf5-68afe04141ff"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Jim Shu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/input.xml new file mode 100644 index 00000000..3f2a09c2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/input.xml @@ -0,0 +1,60 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="2e184592-a9ba-41ba-a336-4a96881e3f39"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2fdfc0f1-10c1-4bd3-a587-f219657f5664"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)"/> + </code> + <form> + <text value="Infusionslösung"/> + </form> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#2fdfc0f1-10c1-4bd3-a587-f219657f5664"/> + <display value="3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/log.txt new file mode 100644 index 00000000..3e76a819 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/af207645-b81f-43a1-a478-9b2635e792c3*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/af207645-b81f-43a1-a478-9b2635e792c3*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/af207645-b81f-43a1-a478-9b2635e792c3*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/output.json new file mode 100644 index 00000000..f5b0bc1c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/output.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "6e50847e-626f-43b3-894f-d1da1174494f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "af207645-b81f-43a1-a478-9b2635e792c3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.018.562.305.023.72" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/14434f67-140f-4cb5-97d8-b8a48525c403" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/3e22339f-23fd-4885-b1ad-99680cc53130" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "zur ärztlichen parenteralen Applikation gem. Therapieplan" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "14434f67-140f-4cb5-97d8-b8a48525c403", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)" + }, + "form": { + "text": "Infusionslösung" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "3e22339f-23fd-4885-b1ad-99680cc53130", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Skip Dover" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/output.xml new file mode 100644 index 00000000..3c18c800 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_6e50847e/output.xml @@ -0,0 +1,102 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6e50847e-626f-43b3-894f-d1da1174494f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="af207645-b81f-43a1-a478-9b2635e792c3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/14434f67-140f-4cb5-97d8-b8a48525c403"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/3e22339f-23fd-4885-b1ad-99680cc53130"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="14434f67-140f-4cb5-97d8-b8a48525c403"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)"/> + </code> + <form> + <text value="Infusionslösung"/> + </form> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3e22339f-23fd-4885-b1ad-99680cc53130"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Skip Dover"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/input.xml new file mode 100644 index 00000000..8221d325 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/input.xml @@ -0,0 +1,60 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="2e184592-a9ba-41ba-a336-4a96881e3f39"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2fdfc0f1-10c1-4bd3-a587-f219657f5664"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)"/> + </code> + <form> + <text value="Infusionslösung"/> + </form> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#2fdfc0f1-10c1-4bd3-a587-f219657f5664"/> + <display value="3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/log.txt new file mode 100644 index 00000000..dfba3796 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/81af09de-87cf-4db5-857e-790349fec75b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/81af09de-87cf-4db5-857e-790349fec75b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/81af09de-87cf-4db5-857e-790349fec75b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/output.json new file mode 100644 index 00000000..c1afaffa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/output.json @@ -0,0 +1,99 @@ +{ + "resourceType": "Parameters", + "id": "a3d47106-2946-4d41-bc33-c3af7b7046dd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "81af09de-87cf-4db5-857e-790349fec75b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.018.562.305.023.72" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/47874cee-5e95-4d19-ad37-1828249f65fd" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/fe5b77e1-b3f2-449a-bf69-80c020947caa" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "zur ärztlichen parenteralen Applikation gem. Therapieplan" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "47874cee-5e95-4d19-ad37-1828249f65fd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)" + }, + "form": { + "text": "Infusionslösung" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "fe5b77e1-b3f2-449a-bf69-80c020947caa", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Braxton Hicks" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/output.xml new file mode 100644 index 00000000..e1cf40db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/Rez_parenterale_Zytostatika_MedicationDispense_a3d47106/output.xml @@ -0,0 +1,102 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a3d47106-2946-4d41-bc33-c3af7b7046dd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="81af09de-87cf-4db5-857e-790349fec75b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.018.562.305.023.72"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/47874cee-5e95-4d19-ad37-1828249f65fd"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/fe5b77e1-b3f2-449a-bf69-80c020947caa"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="zur ärztlichen parenteralen Applikation gem. Therapieplan"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47874cee-5e95-4d19-ad37-1828249f65fd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="3 mal 500 ml Infusionslösung (Etoposid 180 mg, NaCl 0,9 % 500 ml)"/> + </code> + <form> + <text value="Infusionslösung"/> + </form> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="fe5b77e1-b3f2-449a-bf69-80c020947caa"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Braxton Hicks"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/input.xml new file mode 100644 index 00000000..f012ad54 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b1a77067-7616-42fd-9495-f4fb1a0f6e4b"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8ed997cb-7556-442c-83b0-60cfcaccec0d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00408362"/> + </coding> + <text value="GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8ed997cb-7556-442c-83b0-60cfcaccec0d"/> + <display value="GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/log.txt new file mode 100644 index 00000000..37e51b28 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/629f48e1-de56-4923-8f79-5524e954fc21*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/629f48e1-de56-4923-8f79-5524e954fc21*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/629f48e1-de56-4923-8f79-5524e954fc21*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/output.json new file mode 100644 index 00000000..f348e44d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "9dd5e1aa-6fa5-43e7-8fe5-dd7d5cc2cbf4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "629f48e1-de56-4923-8f79-5524e954fc21", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/8bfef90e-5b25-43eb-aea9-f82a6fd9c866" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f1a4352b-e67f-40f5-9600-160bfa00b9a5" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8bfef90e-5b25-43eb-aea9-f82a6fd9c866", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00408362" + } ], + "text": "GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f1a4352b-e67f-40f5-9600-160bfa00b9a5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Oliver Sutton" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/output.xml new file mode 100644 index 00000000..aa4886aa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_9dd5e1aa/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9dd5e1aa-6fa5-43e7-8fe5-dd7d5cc2cbf4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="629f48e1-de56-4923-8f79-5524e954fc21"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/8bfef90e-5b25-43eb-aea9-f82a6fd9c866"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f1a4352b-e67f-40f5-9600-160bfa00b9a5"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8bfef90e-5b25-43eb-aea9-f82a6fd9c866"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00408362"/> + </coding> + <text value="GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f1a4352b-e67f-40f5-9600-160bfa00b9a5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Oliver Sutton"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/input.xml new file mode 100644 index 00000000..f31143e7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="b1a77067-7616-42fd-9495-f4fb1a0f6e4b"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8ed997cb-7556-442c-83b0-60cfcaccec0d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00408362"/> + </coding> + <text value="GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8ed997cb-7556-442c-83b0-60cfcaccec0d"/> + <display value="GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/log.txt new file mode 100644 index 00000000..624c1e8e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/034d0f92-5dd4-4583-9c5c-586911de5532*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/034d0f92-5dd4-4583-9c5c-586911de5532*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/034d0f92-5dd4-4583-9c5c-586911de5532*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/output.json new file mode 100644 index 00000000..e6aac6f4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "b9ca692c-0511-4a49-a6d1-d010b7904a2d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "034d0f92-5dd4-4583-9c5c-586911de5532", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/f4fbbb03-023d-4a59-a187-831a22faea3b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/f8d3e002-e1e6-4fee-ba87-196029291b85" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f4fbbb03-023d-4a59-a187-831a22faea3b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00408362" + } ], + "text": "GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "f8d3e002-e1e6-4fee-ba87-196029291b85", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Liz Onnia" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/output.xml new file mode 100644 index 00000000..2af8c80f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V1_MedicationDispense_b9ca692c/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b9ca692c-0511-4a49-a6d1-d010b7904a2d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="034d0f92-5dd4-4583-9c5c-586911de5532"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/f4fbbb03-023d-4a59-a187-831a22faea3b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/f8d3e002-e1e6-4fee-ba87-196029291b85"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f4fbbb03-023d-4a59-a187-831a22faea3b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00408362"/> + </coding> + <text value="GABAPENTIN STADA 600 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f8d3e002-e1e6-4fee-ba87-196029291b85"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Liz Onnia"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/input.xml new file mode 100644 index 00000000..fe1f4cb7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dec2d0aa-cdb7-460a-96dd-22f1253ac578"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="eed82d8e-3991-4d29-970f-a17447883277"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00407552"/> + </coding> + <text value="GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#eed82d8e-3991-4d29-970f-a17447883277"/> + <display value="GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/log.txt new file mode 100644 index 00000000..62a4b777 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5172fea2-2ffa-4ab1-bf67-682fa9661c65*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5172fea2-2ffa-4ab1-bf67-682fa9661c65*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5172fea2-2ffa-4ab1-bf67-682fa9661c65*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/output.json new file mode 100644 index 00000000..b42766ff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "48c15070-da9d-45a2-8bd1-4c2b3f2b789b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5172fea2-2ffa-4ab1-bf67-682fa9661c65", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/9921fca1-fd34-4244-b7f2-b6d4c672442b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/a850bffe-f924-4982-b098-c629dd8a4433" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9921fca1-fd34-4244-b7f2-b6d4c672442b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00407552" + } ], + "text": "GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "a850bffe-f924-4982-b098-c629dd8a4433", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sasha Klotz" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/output.xml new file mode 100644 index 00000000..f7d8ede2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_48c15070/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="48c15070-da9d-45a2-8bd1-4c2b3f2b789b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5172fea2-2ffa-4ab1-bf67-682fa9661c65"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/9921fca1-fd34-4244-b7f2-b6d4c672442b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/a850bffe-f924-4982-b098-c629dd8a4433"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9921fca1-fd34-4244-b7f2-b6d4c672442b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00407552"/> + </coding> + <text value="GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a850bffe-f924-4982-b098-c629dd8a4433"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sasha Klotz"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/input.xml new file mode 100644 index 00000000..099d7ea4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="dec2d0aa-cdb7-460a-96dd-22f1253ac578"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="eed82d8e-3991-4d29-970f-a17447883277"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00407552"/> + </coding> + <text value="GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#eed82d8e-3991-4d29-970f-a17447883277"/> + <display value="GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/log.txt new file mode 100644 index 00000000..752c9f9b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1ec00ceb-7989-4b7a-ad5d-14f1af2dafa2*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1ec00ceb-7989-4b7a-ad5d-14f1af2dafa2*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1ec00ceb-7989-4b7a-ad5d-14f1af2dafa2*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/output.json new file mode 100644 index 00000000..6bbfc597 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "c90cd97e-a629-4f1c-b8bf-d0fdf96db617", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1ec00ceb-7989-4b7a-ad5d-14f1af2dafa2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/85bd9b2b-1ab4-4891-81d1-53fcdebc6a1d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "H030170228" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/38e04b7a-7319-4208-a6dc-4cbc43bd972c" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "85bd9b2b-1ab4-4891-81d1-53fcdebc6a1d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00407552" + } ], + "text": "GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "38e04b7a-7319-4208-a6dc-4cbc43bd972c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sue Jeu" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/output.xml new file mode 100644 index 00000000..9f675ad6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_BK_V2_MedicationDispense_c90cd97e/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c90cd97e-a629-4f1c-b8bf-d0fdf96db617"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1ec00ceb-7989-4b7a-ad5d-14f1af2dafa2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/85bd9b2b-1ab4-4891-81d1-53fcdebc6a1d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/38e04b7a-7319-4208-a6dc-4cbc43bd972c"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="85bd9b2b-1ab4-4891-81d1-53fcdebc6a1d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00407552"/> + </coding> + <text value="GABAPENTIN STADA 300 mg Hartkapseln (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="38e04b7a-7319-4208-a6dc-4cbc43bd972c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sue Jeu"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/input.xml new file mode 100644 index 00000000..3fdd11b0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ac31e7a6-400f-48e4-a836-b5f78d0fc4ac"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5ff6df43-f84c-43a5-9770-3579afb67da8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00232236"/> + </coding> + <text value="SIMVA BASICS 20 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5ff6df43-f84c-43a5-9770-3579afb67da8"/> + <display value="SIMVA BASICS 20 mg Filmtabletten (100 Stk)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/log.txt new file mode 100644 index 00000000..4da503fa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/05d254ff-247d-4645-b8cf-7d36f7208530*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/05d254ff-247d-4645-b8cf-7d36f7208530*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/05d254ff-247d-4645-b8cf-7d36f7208530*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/output.json new file mode 100644 index 00000000..cc158375 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "9ff7ec9a-3e31-477d-a6b4-23ccfa62f08c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "05d254ff-247d-4645-b8cf-7d36f7208530", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.022.73" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/e6744bb5-5ac5-4336-81ea-b8dc013a0fe0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/6691f23f-43de-43b4-8efa-c1788e8b6334" + } + } ], + "whenHandedOver": "2023-07-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e6744bb5-5ac5-4336-81ea-b8dc013a0fe0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00232236" + } ], + "text": "SIMVA BASICS 20 mg Filmtabletten (100 Stk)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "6691f23f-43de-43b4-8efa-c1788e8b6334", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Lee Nover" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/output.xml new file mode 100644 index 00000000..66005fa1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_9ff7ec9a/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9ff7ec9a-3e31-477d-a6b4-23ccfa62f08c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="05d254ff-247d-4645-b8cf-7d36f7208530"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/e6744bb5-5ac5-4336-81ea-b8dc013a0fe0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/6691f23f-43de-43b4-8efa-c1788e8b6334"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e6744bb5-5ac5-4336-81ea-b8dc013a0fe0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00232236"/> + </coding> + <text value="SIMVA BASICS 20 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6691f23f-43de-43b4-8efa-c1788e8b6334"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Lee Nover"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/input.xml new file mode 100644 index 00000000..5a79c4e7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="ac31e7a6-400f-48e4-a836-b5f78d0fc4ac"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5ff6df43-f84c-43a5-9770-3579afb67da8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00232236"/> + </coding> + <text value="SIMVA BASICS 20 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#5ff6df43-f84c-43a5-9770-3579afb67da8"/> + <display value="SIMVA BASICS 20 mg Filmtabletten (100 Stk)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/log.txt new file mode 100644 index 00000000..ecaa3ad2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/1865dd7a-6422-4c0b-b05d-b15b629d2ffd*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/1865dd7a-6422-4c0b-b05d-b15b629d2ffd*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/1865dd7a-6422-4c0b-b05d-b15b629d2ffd*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/output.json new file mode 100644 index 00000000..6db622ce --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "d697d945-b98a-41ec-bb31-4e2bf418e6a0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "1865dd7a-6422-4c0b-b05d-b15b629d2ffd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.022.73" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/aaeaaa57-dd24-4cca-b08a-68d9c72f9ce7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/80c13f30-2c32-494e-9980-0c2a61132a02" + } + } ], + "whenHandedOver": "2024-11-27" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "aaeaaa57-dd24-4cca-b08a-68d9c72f9ce7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00232236" + } ], + "text": "SIMVA BASICS 20 mg Filmtabletten (100 Stk)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "80c13f30-2c32-494e-9980-0c2a61132a02", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Gene E. Yuss" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/output.xml new file mode 100644 index 00000000..759052a7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV1_MedicationDispense_d697d945/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d697d945-b98a-41ec-bb31-4e2bf418e6a0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="1865dd7a-6422-4c0b-b05d-b15b629d2ffd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/aaeaaa57-dd24-4cca-b08a-68d9c72f9ce7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/80c13f30-2c32-494e-9980-0c2a61132a02"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aaeaaa57-dd24-4cca-b08a-68d9c72f9ce7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00232236"/> + </coding> + <text value="SIMVA BASICS 20 mg Filmtabletten (100 Stk)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="80c13f30-2c32-494e-9980-0c2a61132a02"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Gene E. Yuss"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/input.xml new file mode 100644 index 00000000..5f03b8fe --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="361ee9e0-3360-43c3-8d34-337197907620"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1efe56d3-d977-4a18-998a-985793678879"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02846592"/> + </coding> + <text value="SIMVAHEXAL 20 mg Filmtabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#1efe56d3-d977-4a18-998a-985793678879"/> + <display value="SIMVAHEXAL 20 mg Filmtabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2025-01-30"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/log.txt new file mode 100644 index 00000000..bbb6c8ac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/322e455d-9f95-4025-9e5f-3a5da847ea67*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/322e455d-9f95-4025-9e5f-3a5da847ea67*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/322e455d-9f95-4025-9e5f-3a5da847ea67*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/output.json new file mode 100644 index 00000000..184db4f9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "72e8c90f-4767-42dd-b8db-203a78c9c232", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "322e455d-9f95-4025-9e5f-3a5da847ea67", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.027.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/0a1fd337-7996-4dfc-8bda-71769d6e04a0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/d3d70e59-59f8-4890-b627-9444c6ba247b" + } + } ], + "whenHandedOver": "2025-01-30" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0a1fd337-7996-4dfc-8bda-71769d6e04a0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02846592" + } ], + "text": "SIMVAHEXAL 20 mg Filmtabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "d3d70e59-59f8-4890-b627-9444c6ba247b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Carrie A. Tune" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/output.xml new file mode 100644 index 00000000..843b0e4d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_72e8c90f/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="72e8c90f-4767-42dd-b8db-203a78c9c232"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="322e455d-9f95-4025-9e5f-3a5da847ea67"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/0a1fd337-7996-4dfc-8bda-71769d6e04a0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/d3d70e59-59f8-4890-b627-9444c6ba247b"/> + </actor> + </performer> + <whenHandedOver value="2025-01-30"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0a1fd337-7996-4dfc-8bda-71769d6e04a0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02846592"/> + </coding> + <text value="SIMVAHEXAL 20 mg Filmtabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d3d70e59-59f8-4890-b627-9444c6ba247b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Carrie A. Tune"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/input.xml new file mode 100644 index 00000000..89a95600 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/input.xml @@ -0,0 +1,88 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="361ee9e0-3360-43c3-8d34-337197907620"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1efe56d3-d977-4a18-998a-985793678879"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02846592"/> + </coding> + <text value="SIMVAHEXAL 20 mg Filmtabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#1efe56d3-d977-4a18-998a-985793678879"/> + <display value="SIMVAHEXAL 20 mg Filmtabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-09-30"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/log.txt new file mode 100644 index 00000000..ecd75ad2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/42c74092-820c-4b42-88e2-718c47e6eedb*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/42c74092-820c-4b42-88e2-718c47e6eedb*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/42c74092-820c-4b42-88e2-718c47e6eedb*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/output.json new file mode 100644 index 00000000..af11424e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/output.json @@ -0,0 +1,122 @@ +{ + "resourceType": "Parameters", + "id": "80760961-fdfc-4c57-a682-8de925f6f40d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "42c74092-820c-4b42-88e2-718c47e6eedb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.027.58" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/3e656570-c914-4f3d-8e6f-2492338f3744" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/6a73c874-e3c7-4bfc-afac-8b55e31148ff" + } + } ], + "whenHandedOver": "2023-09-30" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3e656570-c914-4f3d-8e6f-2492338f3744", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02846592" + } ], + "text": "SIMVAHEXAL 20 mg Filmtabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "6a73c874-e3c7-4bfc-afac-8b55e31148ff", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Terry Bull" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/output.xml new file mode 100644 index 00000000..365f829b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_MV2_MedicationDispense_80760961/output.xml @@ -0,0 +1,124 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="80760961-fdfc-4c57-a682-8de925f6f40d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="42c74092-820c-4b42-88e2-718c47e6eedb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/3e656570-c914-4f3d-8e6f-2492338f3744"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/6a73c874-e3c7-4bfc-afac-8b55e31148ff"/> + </actor> + </performer> + <whenHandedOver value="2023-09-30"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3e656570-c914-4f3d-8e6f-2492338f3744"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02846592"/> + </coding> + <text value="SIMVAHEXAL 20 mg Filmtabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6a73c874-e3c7-4bfc-afac-8b55e31148ff"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Terry Bull"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/input.xml new file mode 100644 index 00000000..1989bf2b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f23d8d7f-5147-447f-b3d5-473a4d30268c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="52660ef8-6e6e-4c8d-8096-ff78e084141c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12481766"/> + </coding> + <text value="Diclofenac Natrium Micro Labs 75 mg Reta, 20 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#52660ef8-6e6e-4c8d-8096-ff78e084141c"/> + <display value="Diclofenac Natrium Micro Labs 75 mg Reta, 20 St"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/log.txt new file mode 100644 index 00000000..0c188073 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/5175ab86-2c3c-4c3e-b9af-d8ed57bca482*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/5175ab86-2c3c-4c3e-b9af-d8ed57bca482*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/5175ab86-2c3c-4c3e-b9af-d8ed57bca482*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/output.json new file mode 100644 index 00000000..8ca694fe --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "01dee893-07b0-4e39-9083-80c4aa91596f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "5175ab86-2c3c-4c3e-b9af-d8ed57bca482", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.021.76" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/3804f5b2-2c7c-4b1f-93c7-ad8fdefe4eaf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/9675d049-b16d-40ef-b673-71b13166ed30" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3804f5b2-2c7c-4b1f-93c7-ad8fdefe4eaf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12481766" + } ], + "text": "Diclofenac Natrium Micro Labs 75 mg Reta, 20 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "RET" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "9675d049-b16d-40ef-b673-71b13166ed30", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Pearl E. Whites" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/output.xml new file mode 100644 index 00000000..a22cf48a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_01dee893/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="01dee893-07b0-4e39-9083-80c4aa91596f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5175ab86-2c3c-4c3e-b9af-d8ed57bca482"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/3804f5b2-2c7c-4b1f-93c7-ad8fdefe4eaf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/9675d049-b16d-40ef-b673-71b13166ed30"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3804f5b2-2c7c-4b1f-93c7-ad8fdefe4eaf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12481766"/> + </coding> + <text value="Diclofenac Natrium Micro Labs 75 mg Reta, 20 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9675d049-b16d-40ef-b673-71b13166ed30"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Pearl E. Whites"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/input.xml new file mode 100644 index 00000000..faba51ab --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f23d8d7f-5147-447f-b3d5-473a4d30268c"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="52660ef8-6e6e-4c8d-8096-ff78e084141c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12481766"/> + </coding> + <text value="Diclofenac Natrium Micro Labs 75 mg Reta, 20 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#52660ef8-6e6e-4c8d-8096-ff78e084141c"/> + <display value="Diclofenac Natrium Micro Labs 75 mg Reta, 20 St"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/log.txt new file mode 100644 index 00000000..6e8101b9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/0745a568-29b2-4e4f-81f6-802739e6392b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/0745a568-29b2-4e4f-81f6-802739e6392b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/0745a568-29b2-4e4f-81f6-802739e6392b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/output.json new file mode 100644 index 00000000..74bf63ae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "dc4c994a-7b55-44c9-861f-4a8881799f68", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "0745a568-29b2-4e4f-81f6-802739e6392b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.021.76" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/0db791de-b440-4092-bee7-06c910e9dcec" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/11d1c096-e219-42e5-9ca6-10d7fa01ac49" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0db791de-b440-4092-bee7-06c910e9dcec", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12481766" + } ], + "text": "Diclofenac Natrium Micro Labs 75 mg Reta, 20 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "RET" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "11d1c096-e219-42e5-9ca6-10d7fa01ac49", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ima Lytle Teapot" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/output.xml new file mode 100644 index 00000000..b116507f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_Unfall_MedicationDispense_dc4c994a/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dc4c994a-7b55-44c9-861f-4a8881799f68"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="0745a568-29b2-4e4f-81f6-802739e6392b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/0db791de-b440-4092-bee7-06c910e9dcec"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/11d1c096-e219-42e5-9ca6-10d7fa01ac49"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0db791de-b440-4092-bee7-06c910e9dcec"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12481766"/> + </coding> + <text value="Diclofenac Natrium Micro Labs 75 mg Reta, 20 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="11d1c096-e219-42e5-9ca6-10d7fa01ac49"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ima Lytle Teapot"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/input.xml new file mode 100644 index 00000000..b0dc4383 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5906fd7f-35b5-4420-963a-b562a99dcb81"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="286d159b-4fb0-4af5-9ec6-30c937c92a0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00766759"/> + </coding> + <text value="RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#286d159b-4fb0-4af5-9ec6-30c937c92a0c"/> + <display value="RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/log.txt new file mode 100644 index 00000000..3f222919 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/926e80a6-f406-454d-a530-77a595f9f085*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/926e80a6-f406-454d-a530-77a595f9f085*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/926e80a6-f406-454d-a530-77a595f9f085*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/output.json new file mode 100644 index 00000000..b9051431 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "bead4326-91da-4e33-94e3-0c94c5d5c99c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "926e80a6-f406-454d-a530-77a595f9f085", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/3b466bb7-8fad-48d2-be20-2cd673e5b97c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/ed6d05e0-8980-4de8-8a1d-00dfa75fc94a" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3b466bb7-8fad-48d2-be20-2cd673e5b97c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00766759" + } ], + "text": "RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "ed6d05e0-8980-4de8-8a1d-00dfa75fc94a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ilene Left" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/output.xml new file mode 100644 index 00000000..ff2a9f80 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_bead4326/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bead4326-91da-4e33-94e3-0c94c5d5c99c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="926e80a6-f406-454d-a530-77a595f9f085"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/3b466bb7-8fad-48d2-be20-2cd673e5b97c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/ed6d05e0-8980-4de8-8a1d-00dfa75fc94a"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3b466bb7-8fad-48d2-be20-2cd673e5b97c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00766759"/> + </coding> + <text value="RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ed6d05e0-8980-4de8-8a1d-00dfa75fc94a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ilene Left"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/input.xml new file mode 100644 index 00000000..29c11410 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="5906fd7f-35b5-4420-963a-b562a99dcb81"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="286d159b-4fb0-4af5-9ec6-30c937c92a0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00766759"/> + </coding> + <text value="RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#286d159b-4fb0-4af5-9ec6-30c937c92a0c"/> + <display value="RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/log.txt new file mode 100644 index 00000000..0c9f2d22 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/2f325141-750c-40c7-8110-66a5ef14b99f*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/2f325141-750c-40c7-8110-66a5ef14b99f*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/2f325141-750c-40c7-8110-66a5ef14b99f*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/output.json new file mode 100644 index 00000000..f2f07ed0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "f928bb5f-441f-4d1a-b634-1592db3f3cbb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "2f325141-750c-40c7-8110-66a5ef14b99f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/188f2da6-7310-4167-a86c-b5648e6dc23e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/20cb977a-028f-4bc5-a79d-6213ffcb6ad6" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "188f2da6-7310-4167-a86c-b5648e6dc23e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00766759" + } ], + "text": "RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "20cb977a-028f-4bc5-a79d-6213ffcb6ad6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sherman Wadd Evver" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/output.xml new file mode 100644 index 00000000..635ddafb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V1_MedicationDispense_f928bb5f/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f928bb5f-441f-4d1a-b634-1592db3f3cbb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="2f325141-750c-40c7-8110-66a5ef14b99f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/188f2da6-7310-4167-a86c-b5648e6dc23e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/20cb977a-028f-4bc5-a79d-6213ffcb6ad6"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="188f2da6-7310-4167-a86c-b5648e6dc23e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00766759"/> + </coding> + <text value="RAMIPRIL-1A Pharma 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="20cb977a-028f-4bc5-a79d-6213ffcb6ad6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sherman Wadd Evver"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/input.xml new file mode 100644 index 00000000..7ebd01b3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="95db25e9-b37b-4241-9bcb-708f5f637565"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8f5bed2b-ad22-4751-b2aa-0ad75ae358df"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01755640"/> + </coding> + <text value="RAMIPRIL AbZ 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8f5bed2b-ad22-4751-b2aa-0ad75ae358df"/> + <display value="RAMIPRIL AbZ 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/log.txt new file mode 100644 index 00000000..07fb5922 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/cbb5172d-4726-449b-9ef2-25dd70ad6935*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/cbb5172d-4726-449b-9ef2-25dd70ad6935*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/cbb5172d-4726-449b-9ef2-25dd70ad6935*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/output.json new file mode 100644 index 00000000..3e97e0c0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "5008abb4-c336-43ee-a1cb-3a1a4dc0be5b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "cbb5172d-4726-449b-9ef2-25dd70ad6935", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/d3d14c17-7530-4724-8a04-089ae2fa5ff4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/38b69981-cbc6-40ff-a30d-b0be80f21079" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d3d14c17-7530-4724-8a04-089ae2fa5ff4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01755640" + } ], + "text": "RAMIPRIL AbZ 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "38b69981-cbc6-40ff-a30d-b0be80f21079", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Emma Royds" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/output.xml new file mode 100644 index 00000000..8bb4d4ac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_5008abb4/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5008abb4-c336-43ee-a1cb-3a1a4dc0be5b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="cbb5172d-4726-449b-9ef2-25dd70ad6935"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/d3d14c17-7530-4724-8a04-089ae2fa5ff4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/38b69981-cbc6-40ff-a30d-b0be80f21079"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d3d14c17-7530-4724-8a04-089ae2fa5ff4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01755640"/> + </coding> + <text value="RAMIPRIL AbZ 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="38b69981-cbc6-40ff-a30d-b0be80f21079"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Emma Royds"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/input.xml new file mode 100644 index 00000000..c4c00fe0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="95db25e9-b37b-4241-9bcb-708f5f637565"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8f5bed2b-ad22-4751-b2aa-0ad75ae358df"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01755640"/> + </coding> + <text value="RAMIPRIL AbZ 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#8f5bed2b-ad22-4751-b2aa-0ad75ae358df"/> + <display value="RAMIPRIL AbZ 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/log.txt new file mode 100644 index 00000000..c7161dac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/3e1e98cf-9ebe-41f1-ac8f-309b7d47c6bf*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/3e1e98cf-9ebe-41f1-ac8f-309b7d47c6bf*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/3e1e98cf-9ebe-41f1-ac8f-309b7d47c6bf*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/output.json new file mode 100644 index 00000000..bc006f9f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "d6799e8c-e18d-4b96-9c49-81acfe52628b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "3e1e98cf-9ebe-41f1-ac8f-309b7d47c6bf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/643effa8-69f0-477a-a2dd-c6ced07b8687" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/7d5aa037-0611-4e8b-bf34-e0e3517db1eb" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "643effa8-69f0-477a-a2dd-c6ced07b8687", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01755640" + } ], + "text": "RAMIPRIL AbZ 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "7d5aa037-0611-4e8b-bf34-e0e3517db1eb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Ryan Carnation" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/output.xml new file mode 100644 index 00000000..e76f5ecc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V2_MedicationDispense_d6799e8c/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d6799e8c-e18d-4b96-9c49-81acfe52628b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3e1e98cf-9ebe-41f1-ac8f-309b7d47c6bf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/643effa8-69f0-477a-a2dd-c6ced07b8687"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/7d5aa037-0611-4e8b-bf34-e0e3517db1eb"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="643effa8-69f0-477a-a2dd-c6ced07b8687"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01755640"/> + </coding> + <text value="RAMIPRIL AbZ 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="7d5aa037-0611-4e8b-bf34-e0e3517db1eb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Ryan Carnation"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/input.xml new file mode 100644 index 00000000..56c55857 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c3437dfc-a141-4bf1-9fb3-a4827b9781eb"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fc2a72e7-bc15-4456-852f-51014e182760"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00761360"/> + </coding> + <text value="RAMIPRIL beta 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#fc2a72e7-bc15-4456-852f-51014e182760"/> + <display value="RAMIPRIL beta 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/log.txt new file mode 100644 index 00000000..6b545d0e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/85950d6a-7de1-468f-b331-56399ed38f90*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/85950d6a-7de1-468f-b331-56399ed38f90*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/85950d6a-7de1-468f-b331-56399ed38f90*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/output.json new file mode 100644 index 00000000..f1e161ed --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "2b8b7bec-eba8-4b86-82f9-8b31c277ec09", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "85950d6a-7de1-468f-b331-56399ed38f90", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/6a21f5e1-9c6e-4dd9-9357-8d1d45650ff2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/0aec6870-ed81-4cdc-8872-d98dd10ba816" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6a21f5e1-9c6e-4dd9-9357-8d1d45650ff2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00761360" + } ], + "text": "RAMIPRIL beta 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "0aec6870-ed81-4cdc-8872-d98dd10ba816", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Lois Price" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/output.xml new file mode 100644 index 00000000..ffcb5145 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_2b8b7bec/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2b8b7bec-eba8-4b86-82f9-8b31c277ec09"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="85950d6a-7de1-468f-b331-56399ed38f90"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/6a21f5e1-9c6e-4dd9-9357-8d1d45650ff2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/0aec6870-ed81-4cdc-8872-d98dd10ba816"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6a21f5e1-9c6e-4dd9-9357-8d1d45650ff2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00761360"/> + </coding> + <text value="RAMIPRIL beta 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0aec6870-ed81-4cdc-8872-d98dd10ba816"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Lois Price"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/input.xml new file mode 100644 index 00000000..cc76a189 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="c3437dfc-a141-4bf1-9fb3-a4827b9781eb"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fc2a72e7-bc15-4456-852f-51014e182760"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00761360"/> + </coding> + <text value="RAMIPRIL beta 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#fc2a72e7-bc15-4456-852f-51014e182760"/> + <display value="RAMIPRIL beta 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/log.txt new file mode 100644 index 00000000..8a474a18 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/6efaca44-28ff-47fd-9b3c-ea40e72938a6*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/6efaca44-28ff-47fd-9b3c-ea40e72938a6*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/6efaca44-28ff-47fd-9b3c-ea40e72938a6*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/output.json new file mode 100644 index 00000000..db17b6a4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "b3753083-6be9-41ac-b4cc-7c70c6ed9e8b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "6efaca44-28ff-47fd-9b3c-ea40e72938a6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/dafb6fec-7323-49d3-af1c-97d402fd5f66" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/b3103bd8-5d64-4cb6-ac88-dbf02006875b" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "dafb6fec-7323-49d3-af1c-97d402fd5f66", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00761360" + } ], + "text": "RAMIPRIL beta 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "b3103bd8-5d64-4cb6-ac88-dbf02006875b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Leo Tarred" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/output.xml new file mode 100644 index 00000000..da198ac9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V3_MedicationDispense_b3753083/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b3753083-6be9-41ac-b4cc-7c70c6ed9e8b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="6efaca44-28ff-47fd-9b3c-ea40e72938a6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/dafb6fec-7323-49d3-af1c-97d402fd5f66"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/b3103bd8-5d64-4cb6-ac88-dbf02006875b"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="dafb6fec-7323-49d3-af1c-97d402fd5f66"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00761360"/> + </coding> + <text value="RAMIPRIL beta 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b3103bd8-5d64-4cb6-ac88-dbf02006875b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Leo Tarred"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/input.xml new file mode 100644 index 00000000..2a9cc2d2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="9d575775-88c4-4325-b9b8-5950b57757e6"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ebce4bf0-8944-48f0-929e-b5f0a6a2fb80"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01097987"/> + </coding> + <text value="DELIX 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#ebce4bf0-8944-48f0-929e-b5f0a6a2fb80"/> + <display value="DELIX 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/log.txt new file mode 100644 index 00000000..40b09908 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/28ee2645-6a83-4aae-8b02-ae1078354276*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/28ee2645-6a83-4aae-8b02-ae1078354276*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/28ee2645-6a83-4aae-8b02-ae1078354276*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/output.json new file mode 100644 index 00000000..c4e9e987 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "336380fd-cb44-4e9e-b489-74f1b3018838", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "28ee2645-6a83-4aae-8b02-ae1078354276", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/cbef045f-ff17-472f-a108-00a23542de1d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/50f1535a-d21b-4758-8e75-2b46f39ccfa7" + } + } ], + "whenHandedOver": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "cbef045f-ff17-472f-a108-00a23542de1d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01097987" + } ], + "text": "DELIX 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2024-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "50f1535a-d21b-4758-8e75-2b46f39ccfa7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Nick O'Teen" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/output.xml new file mode 100644 index 00000000..195e0363 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_336380fd/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="336380fd-cb44-4e9e-b489-74f1b3018838"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="28ee2645-6a83-4aae-8b02-ae1078354276"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/cbef045f-ff17-472f-a108-00a23542de1d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/50f1535a-d21b-4758-8e75-2b46f39ccfa7"/> + </actor> + </performer> + <whenHandedOver value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cbef045f-ff17-472f-a108-00a23542de1d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01097987"/> + </coding> + <text value="DELIX 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2024-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="50f1535a-d21b-4758-8e75-2b46f39ccfa7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Nick O'Teen"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/input.xml new file mode 100644 index 00000000..8138d2db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/input.xml @@ -0,0 +1,91 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="9d575775-88c4-4325-b9b8-5950b57757e6"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ebce4bf0-8944-48f0-929e-b5f0a6a2fb80"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01097987"/> + </coding> + <text value="DELIX 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#ebce4bf0-8944-48f0-929e-b5f0a6a2fb80"/> + <display value="DELIX 5 mg Tabletten (100 St)"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/log.txt new file mode 100644 index 00000000..cba19d6e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/793369fc-44e5-4048-9720-91bd9fd7339b*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/793369fc-44e5-4048-9720-91bd9fd7339b*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/793369fc-44e5-4048-9720-91bd9fd7339b*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/output.json new file mode 100644 index 00000000..949cf14c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/output.json @@ -0,0 +1,125 @@ +{ + "resourceType": "Parameters", + "id": "749b8a4f-4633-421d-a7e5-24c6342c84cd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "793369fc-44e5-4048-9720-91bd9fd7339b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/c187ab3f-15ac-42de-a7e7-c334298941fb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K030182229" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c3ada206-b59a-44ac-8c4a-41c8ccd1b59e" + } + } ], + "whenHandedOver": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c187ab3f-15ac-42de-a7e7-c334298941fb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01097987" + } ], + "text": "DELIX 5 mg Tabletten (100 St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Tabletten" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "A123456789-1", + "expirationDate": "2025-12-31" + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c3ada206-b59a-44ac-8c4a-41c8ccd1b59e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-07.2.1234560000.10.789" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Sir Fin Waves" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/output.xml new file mode 100644 index 00000000..1da906dd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationDispense/WS_V4_MedicationDispense_749b8a4f/output.xml @@ -0,0 +1,127 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="749b8a4f-4633-421d-a7e5-24c6342c84cd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="793369fc-44e5-4048-9720-91bd9fd7339b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/c187ab3f-15ac-42de-a7e7-c334298941fb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c3ada206-b59a-44ac-8c4a-41c8ccd1b59e"/> + </actor> + </performer> + <whenHandedOver value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c187ab3f-15ac-42de-a7e7-c334298941fb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01097987"/> + </coding> + <text value="DELIX 5 mg Tabletten (100 St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Tabletten"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="A123456789-1"/> + <expirationDate value="2025-12-31"/> + </batch> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c3ada206-b59a-44ac-8c4a-41c8ccd1b59e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-07.2.1234560000.10.789"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Sir Fin Waves"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/input.xml new file mode 100644 index 00000000..e06bf026 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4863d1fb-dc26-4680-bb35-018610d1749d"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/output.json new file mode 100644 index 00000000..9a1801e4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "ba4e7121-05ca-491d-9c7c-4404c8b29f6b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "69c03b1c-93d9-4ad0-9603-d89c730e9834", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/8819a480-3181-4db1-ba49-4f3e84de15dc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8819a480-3181-4db1-ba49-4f3e84de15dc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "Metformin 850mg Tabletten N3" + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "ebf4c8a2-c39f-4032-a809-0684ada2de4c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "19121851-0f5b-4d96-84f5-c91210fbfb97", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/output.xml new file mode 100644 index 00000000..ce95ea76 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/Beispiel_22_ba4e7121/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ba4e7121-05ca-491d-9c7c-4404c8b29f6b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="69c03b1c-93d9-4ad0-9603-d89c730e9834"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8819a480-3181-4db1-ba49-4f3e84de15dc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8819a480-3181-4db1-ba49-4f3e84de15dc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ebf4c8a2-c39f-4032-a809-0684ada2de4c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="19121851-0f5b-4d96-84f5-c91210fbfb97"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/input.xml new file mode 100644 index 00000000..8f80c802 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4863d1fb-dc26-4680-bb35-018610d1749d"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/output.json new file mode 100644 index 00000000..2d7dfe39 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "4986252f-8d8d-42b3-9f6d-915e70b11fea", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e339ca0d-7be3-478f-a90d-80b840962f81", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/0399e3f8-9278-482c-86ae-c906f65b7e15" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0399e3f8-9278-482c-86ae-c906f65b7e15", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "Metformin 850mg Tabletten N3" + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "bfc3fdd2-cfef-4d9a-92a3-dfffd7f46315", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a70834ee-c811-492d-9c67-c7517f12db65", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/output.xml new file mode 100644 index 00000000..033ac563 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_4986252f/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="4986252f-8d8d-42b3-9f6d-915e70b11fea"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e339ca0d-7be3-478f-a90d-80b840962f81"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0399e3f8-9278-482c-86ae-c906f65b7e15"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0399e3f8-9278-482c-86ae-c906f65b7e15"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="bfc3fdd2-cfef-4d9a-92a3-dfffd7f46315"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a70834ee-c811-492d-9c67-c7517f12db65"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/input.xml new file mode 100644 index 00000000..5023d14c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4863d1fb-dc26-4680-bb35-018610d1749d"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/output.json new file mode 100644 index 00000000..0c0548d2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "525fb142-37f7-497c-b320-c23d447550f3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9967a6ff-9f6d-4178-8537-4dc9acdb6e34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/beb0a6b2-4b9a-4b87-9248-0bd1bbe2f7c1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "beb0a6b2-4b9a-4b87-9248-0bd1bbe2f7c1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "Metformin 850mg Tabletten N3" + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3c6d4829-cfe5-43bb-8fe4-47e6193bee1b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2bb72ad1-a2a9-4025-b1df-5f57fe8bcc44", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/output.xml new file mode 100644 index 00000000..3324020b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V1_VerordnungArzt_525fb142/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="525fb142-37f7-497c-b320-c23d447550f3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9967a6ff-9f6d-4178-8537-4dc9acdb6e34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/beb0a6b2-4b9a-4b87-9248-0bd1bbe2f7c1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="beb0a6b2-4b9a-4b87-9248-0bd1bbe2f7c1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3c6d4829-cfe5-43bb-8fe4-47e6193bee1b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2bb72ad1-a2a9-4025-b1df-5f57fe8bcc44"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/input.xml new file mode 100644 index 00000000..8f80c802 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4863d1fb-dc26-4680-bb35-018610d1749d"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/output.json new file mode 100644 index 00000000..a431a691 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "2f7fa888-a5d3-4c66-9b00-9fcb8d3c1ade", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d9a29b19-38f1-4cd0-8a04-c268539251a7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a3b904d0-0b33-49ae-80fc-e411b255aaa6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a3b904d0-0b33-49ae-80fc-e411b255aaa6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "Metformin 850mg Tabletten N3" + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "4bc05bab-3dd9-485c-8666-ff8414111b3a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e50dede6-7dc4-42bb-9c64-b4f64272dff9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/output.xml new file mode 100644 index 00000000..76184261 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_2f7fa888/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2f7fa888-a5d3-4c66-9b00-9fcb8d3c1ade"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d9a29b19-38f1-4cd0-8a04-c268539251a7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3b904d0-0b33-49ae-80fc-e411b255aaa6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3b904d0-0b33-49ae-80fc-e411b255aaa6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4bc05bab-3dd9-485c-8666-ff8414111b3a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e50dede6-7dc4-42bb-9c64-b4f64272dff9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/input.xml new file mode 100644 index 00000000..5023d14c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4863d1fb-dc26-4680-bb35-018610d1749d"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5877784c-ca07-4cc8-a58f-1517ddc24055"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2979e8a3-352e-4d17-8e06-b356666e4daf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/output.json new file mode 100644 index 00000000..ef221dc8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "a0a0fa28-80a9-49ff-9fbb-fa42d93cae40", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.023.70" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "15ee0164-fbe3-4529-970a-83b290c02e7b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/17d27cb8-6746-4410-8d2d-52ce93a04673" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "17d27cb8-6746-4410-8d2d-52ce93a04673", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "Metformin 850mg Tabletten N3" + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "51da6360-8405-4e57-8d21-47a8e63d1069", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "feeee700-033a-402e-aa0e-a98cdad05597", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/output.xml new file mode 100644 index 00000000..c7c288db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationFreeText/FT_V2_VerordnungArzt_a0a0fa28/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a0a0fa28-80a9-49ff-9fbb-fa42d93cae40"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.023.70"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="15ee0164-fbe3-4529-970a-83b290c02e7b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/17d27cb8-6746-4410-8d2d-52ce93a04673"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="17d27cb8-6746-4410-8d2d-52ce93a04673"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="Metformin 850mg Tabletten N3"/> + </code> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="51da6360-8405-4e57-8d21-47a8e63d1069"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="feeee700-033a-402e-aa0e-a98cdad05597"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/input.xml new file mode 100644 index 00000000..3d059037 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/input.xml @@ -0,0 +1,444 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ec6059d9-72a0-4ba3-8535-6ffcc0c4279b"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.018.85"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/82fd748e-b721-491d-8e7d-681848e49a16"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="82fd748e-b721-491d-8e7d-681848e49a16"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <attester> + <mode value="legal"/> + <party> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </party> + </attester> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/b12e7181-39dd-4864-a63f-74bb81d643a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/b12e7181-39dd-4864-a63f-74bb81d643a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b12e7181-39dd-4864-a63f-74bb81d643a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/aad9fb8b-2ec2-4cda-874a-82565c9d45ef"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/aad9fb8b-2ec2-4cda-874a-82565c9d45ef"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aad9fb8b-2ec2-4cda-874a-82565c9d45ef"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="5682"/> + </coding> + <text value="Ibuprofen"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="600"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="04"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/output.json new file mode 100644 index 00000000..4751115f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/output.json @@ -0,0 +1,243 @@ +{ + "resourceType": "Parameters", + "id": "6e2b78ab-98dd-41de-b50b-1161535577a4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.018.85" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "89a3151f-13eb-4550-9f2b-38854a94189e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1f404c09-4ad0-46a9-b621-35019697a73a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1f404c09-4ad0-46a9-b621-35019697a73a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "5682" + } ], + "text": "Ibuprofen" + }, + "strength": { + "numerator": { + "value": 600, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "92a9f3a5-cc45-49a0-b39f-51ab495ed04c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "34502125-b578-4f7a-8dba-73fe94bee370", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/output.xml new file mode 100644 index 00000000..8143a836 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_16_6e2b78ab/output.xml @@ -0,0 +1,242 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6e2b78ab-98dd-41de-b50b-1161535577a4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.018.85"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="89a3151f-13eb-4550-9f2b-38854a94189e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1f404c09-4ad0-46a9-b621-35019697a73a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1f404c09-4ad0-46a9-b621-35019697a73a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="5682"/> + </coding> + <text value="Ibuprofen"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="600"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="92a9f3a5-cc45-49a0-b39f-51ab495ed04c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="34502125-b578-4f7a-8dba-73fe94bee370"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/input.xml new file mode 100644 index 00000000..8b011b26 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin: Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/output.json new file mode 100644 index 00000000..7323fd3f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "01142458-2598-4eab-8da4-195b22bf4e94", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8edefbc8-1d98-4afb-a958-aa9019e50d5d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/bd63aa68-6032-4692-aeb7-5ebb7ded6da9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bd63aa68-6032-4692-aeb7-5ebb7ded6da9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "01097f32-a8f4-4af3-b058-50cba0b42ad7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "851f4b99-0cd6-4c3d-b956-4c8bc68ab506", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/output.xml new file mode 100644 index 00000000..a7c93910 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_17_01142458/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="01142458-2598-4eab-8da4-195b22bf4e94"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8edefbc8-1d98-4afb-a958-aa9019e50d5d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bd63aa68-6032-4692-aeb7-5ebb7ded6da9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bd63aa68-6032-4692-aeb7-5ebb7ded6da9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="01097f32-a8f4-4af3-b058-50cba0b42ad7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="851f4b99-0cd6-4c3d-b956-4c8bc68ab506"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/input.xml new file mode 100644 index 00000000..1e87bdff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/input.xml @@ -0,0 +1,428 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="218b581d-ccbe-480e-b8d7-f5f9b925e8c4"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="4"/> + </valueCoding> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e091f324-689b-4f3c-875d-050b525b09c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="BG"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="121191241"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="Verwaltungs-BG"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/output.json new file mode 100644 index 00000000..790bbd74 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/output.json @@ -0,0 +1,276 @@ +{ + "resourceType": "Parameters", + "id": "fe99181f-9c4f-4134-a6d7-6456437f9932", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "034d0542-b12a-4a45-9859-cde4728b1004", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/0b1cba31-110f-465e-93d5-fe187eb3032c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0b1cba31-110f-465e-93d5-fe187eb3032c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22308" + } ], + "text": "Gabapentin" + }, + "strength": { + "numerator": { + "value": 300, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "Gabapentin" + }, + "strength": { + "numerator": { + "value": 300, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3a8ec439-1f36-4dde-9749-b8cbcbc5b835", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "0ddae6b7-9a52-4175-9e77-d67e2a3eba00", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/output.xml new file mode 100644 index 00000000..7c144e64 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_18_fe99181f/output.xml @@ -0,0 +1,274 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fe99181f-9c4f-4134-a6d7-6456437f9932"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="034d0542-b12a-4a45-9859-cde4728b1004"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0b1cba31-110f-465e-93d5-fe187eb3032c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0b1cba31-110f-465e-93d5-fe187eb3032c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3a8ec439-1f36-4dde-9749-b8cbcbc5b835"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0ddae6b7-9a52-4175-9e77-d67e2a3eba00"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/input.xml new file mode 100644 index 00000000..9faa4343 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/input.xml @@ -0,0 +1,406 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cf0d4980-af01-44f4-a38c-d6bf14b82e07"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7a0b2d5e-8660-47b2-b26a-0e3dbba4399d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0886a530-68ef-4517-9999-b24f79b08da1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2021-04-01"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3ccc266-b033-47cc-9361-98ec450f7db9"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a3ccc266-b033-47cc-9361-98ec450f7db9"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3ccc266-b033-47cc-9361-98ec450f7db9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Retardtabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="11900"/> + </coding> + <text value="Diclofenac-Natrium"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="75"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/output.json new file mode 100644 index 00000000..1bcb0169 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/output.json @@ -0,0 +1,242 @@ +{ + "resourceType": "Parameters", + "id": "9eb9d0af-fef5-4dc3-96ce-7ee470869741", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.021.76" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9e5d3a71-18e7-4dfa-84ee-5ef83a094a7c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/cfe397fd-b1ec-4d79-8607-b60ae9373f16" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "cfe397fd-b1ec-4d79-8607-b60ae9373f16", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "form": { + "text": "Retardtabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "11900" + } ], + "text": "Diclofenac-Natrium" + }, + "strength": { + "numerator": { + "value": 75, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "56d2e0da-c0fc-49d9-89b6-0dc594d673b0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f8638d39-84c0-4559-a793-cd14ed6fa6f7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/output.xml new file mode 100644 index 00000000..f7018c5b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_19_9eb9d0af/output.xml @@ -0,0 +1,243 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9eb9d0af-fef5-4dc3-96ce-7ee470869741"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9e5d3a71-18e7-4dfa-84ee-5ef83a094a7c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cfe397fd-b1ec-4d79-8607-b60ae9373f16"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cfe397fd-b1ec-4d79-8607-b60ae9373f16"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <form> + <text value="Retardtabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="11900"/> + </coding> + <text value="Diclofenac-Natrium"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="75"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="56d2e0da-c0fc-49d9-89b6-0dc594d673b0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f8638d39-84c0-4559-a793-cd14ed6fa6f7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/input.xml new file mode 100644 index 00000000..a0785b50 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cd6d3a17-8105-4f1e-86ff-48cd5cebf245"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/dc55a629-9d26-467e-83be-55a5a21d6016"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="dc55a629-9d26-467e-83be-55a5a21d6016"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/f63578ab-c3d5-4364-ac13-e20873cb716c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/f63578ab-c3d5-4364-ac13-e20873cb716c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f63578ab-c3d5-4364-ac13-e20873cb716c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2021-04-01"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2021-04-01"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/output.json new file mode 100644 index 00000000..6d526918 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/output.json @@ -0,0 +1,248 @@ +{ + "resourceType": "Parameters", + "id": "c1bbfd8b-c955-4d97-8908-2f5e4a7d2e6f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.022.73" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-01" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7c90826e-0960-430a-ba90-9a9408fb10cd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 2 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2021-04-01" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/9a57bca6-e339-43b8-999b-1e214d736533" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-01", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9a57bca6-e339-43b8-999b-1e214d736533", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "23816" + } ], + "text": "Simvastatin" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e99e5daf-72c4-4df2-9891-fc3b2344d455", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "36ada00c-dbd0-4788-b172-47eb658b0a29", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/output.xml new file mode 100644 index 00000000..9fe61f54 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_1_c1bbfd8b/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c1bbfd8b-c955-4d97-8908-2f5e4a7d2e6f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-01"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7c90826e-0960-430a-ba90-9a9408fb10cd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2021-04-01"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9a57bca6-e339-43b8-999b-1e214d736533"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-01"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9a57bca6-e339-43b8-999b-1e214d736533"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e99e5daf-72c4-4df2-9891-fc3b2344d455"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="36ada00c-dbd0-4788-b172-47eb658b0a29"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/input.xml new file mode 100644 index 00000000..38d5e897 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="d9118e05-6e13-4df6-af50-552401cf9ba2"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d3a554f4-cb2c-4fb5-b03a-f22e8b0f8f70"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d3a554f4-cb2c-4fb5-b03a-f22e8b0f8f70"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/d45717d2-9bca-435c-94aa-56932d81d2cc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/d45717d2-9bca-435c-94aa-56932d81d2cc"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d45717d2-9bca-435c-94aa-56932d81d2cc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2021-06-15"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2021-04-01"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/output.json new file mode 100644 index 00000000..620640bb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/output.json @@ -0,0 +1,248 @@ +{ + "resourceType": "Parameters", + "id": "67ebe8c1-3b8d-4b6b-9fa2-1f9e8748594a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.027.58" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-01" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1f133419-9d11-4832-b989-a15342419ead", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 2 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2021-06-15" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b3b4bbd6-567e-4d12-b4cc-3ebbeb511949" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-01", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b3b4bbd6-567e-4d12-b4cc-3ebbeb511949", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "23816" + } ], + "text": "Simvastatin" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "1dcabf8c-ccf7-485f-b795-9d7b3a0bac47", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "dd61cd21-c866-4387-8bd1-08fa85636751", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/output.xml new file mode 100644 index 00000000..1f98115f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_21_2_67ebe8c1/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="67ebe8c1-3b8d-4b6b-9fa2-1f9e8748594a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-01"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1f133419-9d11-4832-b989-a15342419ead"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2021-06-15"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b3b4bbd6-567e-4d12-b4cc-3ebbeb511949"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-01"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b3b4bbd6-567e-4d12-b4cc-3ebbeb511949"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1dcabf8c-ccf7-485f-b795-9d7b3a0bac47"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="dd61cd21-c866-4387-8bd1-08fa85636751"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/input.xml new file mode 100644 index 00000000..ad6d5c3d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/input.xml @@ -0,0 +1,370 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="726e6cdd-c93d-418c-aeeb-1cfe60228916"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.033.40"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/aa3065d8-255d-4812-8fb4-c6e29bf54085"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="aa3065d8-255d-4812-8fb4-c6e29bf54085"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/a05364ab-29b1-4553-90b8-9657e2f5f5ed"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/a05364ab-29b1-4553-90b8-9657e2f5f5ed"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a05364ab-29b1-4553-90b8-9657e2f5f5ed"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/dc811d43-aad4-4c8d-a58c-2e0258710142"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/dc811d43-aad4-4c8d-a58c-2e0258710142"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="dc811d43-aad4-4c8d-a58c-2e0258710142"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22339"/> + </coding> + <text value="Somatropin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="12"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/output.json new file mode 100644 index 00000000..b468ea3c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/output.json @@ -0,0 +1,227 @@ +{ + "resourceType": "Parameters", + "id": "a90c2e57-ef70-4fdc-a852-d88961d882cc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.033.40" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b03d634f-3db5-4f88-a07c-2ccb16321689", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/35c23913-91b7-4840-ab77-160ebbbb8357" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "35c23913-91b7-4840-ab77-160ebbbb8357", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22339" + } ], + "text": "Somatropin" + }, + "strength": { + "numerator": { + "value": 12, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a8138e59-004e-480b-8623-61a542f00f8f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "7fed72e7-aa72-495b-bb84-3c64bfc7b3ce", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/output.xml new file mode 100644 index 00000000..6db71b3a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_29_a90c2e57/output.xml @@ -0,0 +1,229 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a90c2e57-ef70-4fdc-a852-d88961d882cc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.033.40"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b03d634f-3db5-4f88-a07c-2ccb16321689"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/35c23913-91b7-4840-ab77-160ebbbb8357"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="35c23913-91b7-4840-ab77-160ebbbb8357"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22339"/> + </coding> + <text value="Somatropin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="12"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a8138e59-004e-480b-8623-61a542f00f8f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7fed72e7-aa72-495b-bb84-3c64bfc7b3ce"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/input.xml new file mode 100644 index 00000000..b710436f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/input.xml @@ -0,0 +1,370 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9356774b-81cb-482b-b000-819685088248"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.058.62"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/af7de0b9-e866-4999-8d76-955bcf0ef6d6"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="af7de0b9-e866-4999-8d76-955bcf0ef6d6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/d916cbae-da4b-11eb-8d19-0242ac130003"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/d916cbae-da4b-11eb-8d19-0242ac130003"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d916cbae-da4b-11eb-8d19-0242ac130003"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/94e3dff6-da48-11eb-8d19-0242ac130003"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/94e3dff6-da48-11eb-8d19-0242ac130003"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="94e3dff6-da48-11eb-8d19-0242ac130003"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Filmtabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="30150"/> + </coding> + <text value="Vardenafil"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="10"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="SEL"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/output.json new file mode 100644 index 00000000..a593ab53 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/output.json @@ -0,0 +1,227 @@ +{ + "resourceType": "Parameters", + "id": "97f6247a-676f-4350-ad0e-24e1fa4e2586", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.058.62" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9520e77c-75fb-4bf3-ab8c-b1cf9e8f46af", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/68f94ad1-1880-4680-be06-59eccab3350f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "68f94ad1-1880-4680-be06-59eccab3350f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "form": { + "text": "Filmtabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "30150" + } ], + "text": "Vardenafil" + }, + "strength": { + "numerator": { + "value": 10, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0c947bd5-9cbf-41bd-9751-fa81ae33ace9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4de0fb61-2ac1-43d6-aa0d-8d9a85b64bfc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/output.xml new file mode 100644 index 00000000..03860903 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/Beispiel_58_97f6247a/output.xml @@ -0,0 +1,229 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="97f6247a-676f-4350-ad0e-24e1fa4e2586"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.058.62"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9520e77c-75fb-4bf3-ab8c-b1cf9e8f46af"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/68f94ad1-1880-4680-be06-59eccab3350f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="68f94ad1-1880-4680-be06-59eccab3350f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <form> + <text value="Filmtabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="30150"/> + </coding> + <text value="Vardenafil"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="10"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0c947bd5-9cbf-41bd-9751-fa81ae33ace9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4de0fb61-2ac1-43d6-aa0d-8d9a85b64bfc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/input.xml new file mode 100644 index 00000000..ff2cf4e4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/input.xml @@ -0,0 +1,414 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="218b581d-ccbe-480e-b8d7-f5f9b925e8c4"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="4"/> + </valueCoding> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e091f324-689b-4f3c-875d-050b525b09c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="BG"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="121191241"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="Verwaltungs-BG"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/output.json new file mode 100644 index 00000000..f2cf210e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/output.json @@ -0,0 +1,239 @@ +{ + "resourceType": "Parameters", + "id": "7dc8dca7-65b6-4c40-8e0e-c64d807a817e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c73f5a93-068f-4c2f-861c-3b087885cc7f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/532640fb-aac2-469a-a303-1058a563527e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "532640fb-aac2-469a-a303-1058a563527e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22308" + } ], + "text": "Gabapentin" + }, + "strength": { + "numerator": { + "value": 300, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a74550e7-4b12-4f75-ae26-44b06389a683", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "74403da9-2669-4f0c-a5c7-b7f0b986ce10", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/output.xml new file mode 100644 index 00000000..9916876b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_7dc8dca7/output.xml @@ -0,0 +1,240 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="7dc8dca7-65b6-4c40-8e0e-c64d807a817e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c73f5a93-068f-4c2f-861c-3b087885cc7f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/532640fb-aac2-469a-a303-1058a563527e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="532640fb-aac2-469a-a303-1058a563527e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a74550e7-4b12-4f75-ae26-44b06389a683"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="74403da9-2669-4f0c-a5c7-b7f0b986ce10"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/input.xml new file mode 100644 index 00000000..4cd54e24 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/input.xml @@ -0,0 +1,414 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="218b581d-ccbe-480e-b8d7-f5f9b925e8c4"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="4"/> + </valueCoding> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e091f324-689b-4f3c-875d-050b525b09c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="BG"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="121191241"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="Verwaltungs-BG"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/output.json new file mode 100644 index 00000000..0d9c7ea7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/output.json @@ -0,0 +1,239 @@ +{ + "resourceType": "Parameters", + "id": "f0255f73-4409-4383-9e28-8401763b610d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c860f15a-9526-4aec-ad08-21ad609d173f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/8a0b51bb-da20-4e70-a47f-7733d369547f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8a0b51bb-da20-4e70-a47f-7733d369547f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22308" + } ], + "text": "Gabapentin" + }, + "strength": { + "numerator": { + "value": 300, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "888bf544-51c1-42d6-a976-f00f2f4e95c9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f6bf3896-fe4e-4a0b-a3af-e2ecbca70bde", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/output.xml new file mode 100644 index 00000000..4ed39c32 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V1_VerordnungArzt_f0255f73/output.xml @@ -0,0 +1,240 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f0255f73-4409-4383-9e28-8401763b610d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c860f15a-9526-4aec-ad08-21ad609d173f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8a0b51bb-da20-4e70-a47f-7733d369547f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8a0b51bb-da20-4e70-a47f-7733d369547f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="888bf544-51c1-42d6-a976-f00f2f4e95c9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f6bf3896-fe4e-4a0b-a3af-e2ecbca70bde"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/input.xml new file mode 100644 index 00000000..ff2cf4e4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/input.xml @@ -0,0 +1,414 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="218b581d-ccbe-480e-b8d7-f5f9b925e8c4"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="4"/> + </valueCoding> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e091f324-689b-4f3c-875d-050b525b09c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="BG"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="121191241"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="Verwaltungs-BG"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/output.json new file mode 100644 index 00000000..c0bdf1cc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/output.json @@ -0,0 +1,239 @@ +{ + "resourceType": "Parameters", + "id": "19ee1a38-15d8-4c06-865c-68e3d55c1351", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "54d7f7f3-2c3e-4c66-9f6a-734f89e58878", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1faa49b4-e1b8-46c1-b1e8-252c1cbb7db4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1faa49b4-e1b8-46c1-b1e8-252c1cbb7db4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22308" + } ], + "text": "Gabapentin" + }, + "strength": { + "numerator": { + "value": 300, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6d547bd9-3b29-457c-b846-3521fac7ddbb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "bd27bb72-1a73-4b7d-89b6-2f13b221e3d7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/output.xml new file mode 100644 index 00000000..a611553a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_19ee1a38/output.xml @@ -0,0 +1,240 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="19ee1a38-15d8-4c06-865c-68e3d55c1351"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="54d7f7f3-2c3e-4c66-9f6a-734f89e58878"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1faa49b4-e1b8-46c1-b1e8-252c1cbb7db4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1faa49b4-e1b8-46c1-b1e8-252c1cbb7db4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6d547bd9-3b29-457c-b846-3521fac7ddbb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bd27bb72-1a73-4b7d-89b6-2f13b221e3d7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/input.xml new file mode 100644 index 00000000..4cd54e24 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/input.xml @@ -0,0 +1,414 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="218b581d-ccbe-480e-b8d7-f5f9b925e8c4"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5c43d99a-64ba-436d-9b8c-6ee5156d7607"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53344ec1-64ec-400a-b741-8ab1a4f1f07d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="4"/> + </valueCoding> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/e091f324-689b-4f3c-875d-050b525b09c5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e091f324-689b-4f3c-875d-050b525b09c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0099318c-c7a5-4bf9-a164-3365fb149a3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="BG"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="121191241"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="Verwaltungs-BG"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/output.json new file mode 100644 index 00000000..195d657b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/output.json @@ -0,0 +1,239 @@ +{ + "resourceType": "Parameters", + "id": "b4263a0b-7173-4338-8611-4246f4bc8949", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.020.79" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "669079fe-2b61-413f-9420-dd2e75d1621b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ddd348ed-f957-4949-931f-46e36482a2bb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ddd348ed-f957-4949-931f-46e36482a2bb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22308" + } ], + "text": "Gabapentin" + }, + "strength": { + "numerator": { + "value": 300, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6ac39e1f-7fbd-4233-adc5-e0db4cefd071", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "1b7b80f6-a127-4669-bec4-c742b97ce374", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/output.xml new file mode 100644 index 00000000..ced790ad --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_BK_V2_VerordnungArzt_b4263a0b/output.xml @@ -0,0 +1,240 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b4263a0b-7173-4338-8611-4246f4bc8949"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.020.79"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="669079fe-2b61-413f-9420-dd2e75d1621b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ddd348ed-f957-4949-931f-46e36482a2bb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ddd348ed-f957-4949-931f-46e36482a2bb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22308"/> + </coding> + <text value="Gabapentin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="300"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6ac39e1f-7fbd-4233-adc5-e0db4cefd071"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1b7b80f6-a127-4669-bec4-c742b97ce374"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/input.xml new file mode 100644 index 00000000..53be52a0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cd6d3a17-8105-4f1e-86ff-48cd5cebf245"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/dc55a629-9d26-467e-83be-55a5a21d6016"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="dc55a629-9d26-467e-83be-55a5a21d6016"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/f63578ab-c3d5-4364-ac13-e20873cb716c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/f63578ab-c3d5-4364-ac13-e20873cb716c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f63578ab-c3d5-4364-ac13-e20873cb716c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2023-07-27"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/output.json new file mode 100644 index 00000000..c60f59ac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/output.json @@ -0,0 +1,248 @@ +{ + "resourceType": "Parameters", + "id": "6cd22004-c851-43bd-ae92-1d341e3fa93b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.022.73" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "009b3387-f4d0-416e-815e-627ea0eb90d0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 2 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2023-07-27" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/cc60e0e6-bfab-4eeb-a3f6-8f0f8eadae96" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "cc60e0e6-bfab-4eeb-a3f6-8f0f8eadae96", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "23816" + } ], + "text": "Simvastatin" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "63dc5fc5-5a14-4c0f-b25c-11dac171a20c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a893e520-6b8a-4586-b623-0c885e0f03a7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/output.xml new file mode 100644 index 00000000..8d9755a5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_6cd22004/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6cd22004-c851-43bd-ae92-1d341e3fa93b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="009b3387-f4d0-416e-815e-627ea0eb90d0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2023-07-27"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cc60e0e6-bfab-4eeb-a3f6-8f0f8eadae96"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cc60e0e6-bfab-4eeb-a3f6-8f0f8eadae96"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="63dc5fc5-5a14-4c0f-b25c-11dac171a20c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a893e520-6b8a-4586-b623-0c885e0f03a7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/input.xml new file mode 100644 index 00000000..17503370 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cd6d3a17-8105-4f1e-86ff-48cd5cebf245"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/dc55a629-9d26-467e-83be-55a5a21d6016"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="dc55a629-9d26-467e-83be-55a5a21d6016"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/f63578ab-c3d5-4364-ac13-e20873cb716c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/f63578ab-c3d5-4364-ac13-e20873cb716c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f63578ab-c3d5-4364-ac13-e20873cb716c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-27"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/output.json new file mode 100644 index 00000000..80346631 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/output.json @@ -0,0 +1,248 @@ +{ + "resourceType": "Parameters", + "id": "855669ce-b86c-4b58-8991-5c310599fc17", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.022.73" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9cf79fef-6398-4772-a913-82988beb7bd2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 2 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-27" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/fac2d08b-aadb-4980-acb3-750b3b8bfe44" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fac2d08b-aadb-4980-acb3-750b3b8bfe44", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "23816" + } ], + "text": "Simvastatin" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5afb32ea-1463-4bf9-b259-85e293354da4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "babc7651-88bb-4288-97aa-c70d081054cc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/output.xml new file mode 100644 index 00000000..a36b14f8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV1_VerordnungArzt_855669ce/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="855669ce-b86c-4b58-8991-5c310599fc17"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.022.73"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9cf79fef-6398-4772-a913-82988beb7bd2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-27"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fac2d08b-aadb-4980-acb3-750b3b8bfe44"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fac2d08b-aadb-4980-acb3-750b3b8bfe44"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5afb32ea-1463-4bf9-b259-85e293354da4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="babc7651-88bb-4288-97aa-c70d081054cc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/input.xml new file mode 100644 index 00000000..41148b01 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="d9118e05-6e13-4df6-af50-552401cf9ba2"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d3a554f4-cb2c-4fb5-b03a-f22e8b0f8f70"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d3a554f4-cb2c-4fb5-b03a-f22e8b0f8f70"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/d45717d2-9bca-435c-94aa-56932d81d2cc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/d45717d2-9bca-435c-94aa-56932d81d2cc"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d45717d2-9bca-435c-94aa-56932d81d2cc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2023-09-15"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/output.json new file mode 100644 index 00000000..7b1d7622 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/output.json @@ -0,0 +1,248 @@ +{ + "resourceType": "Parameters", + "id": "0e20c760-fcac-434c-94ae-5133f4b59eb6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.027.58" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d3d63b4e-3e26-4afa-8ad3-f681af1ea2cf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 2 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2023-09-15" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/510a84d5-4f56-4ed4-8d6d-53ccdac831aa" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "510a84d5-4f56-4ed4-8d6d-53ccdac831aa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "23816" + } ], + "text": "Simvastatin" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "dfab7a53-4b2e-4ffc-8cf1-c41e66dbf926", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ea08fc8f-80d0-4be2-a08d-fd81cbfcb06a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/output.xml new file mode 100644 index 00000000..088a8080 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_0e20c760/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0e20c760-fcac-434c-94ae-5133f4b59eb6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d3d63b4e-3e26-4afa-8ad3-f681af1ea2cf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2023-09-15"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/510a84d5-4f56-4ed4-8d6d-53ccdac831aa"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="510a84d5-4f56-4ed4-8d6d-53ccdac831aa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="dfab7a53-4b2e-4ffc-8cf1-c41e66dbf926"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ea08fc8f-80d0-4be2-a08d-fd81cbfcb06a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/input.xml new file mode 100644 index 00000000..1c835296 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="d9118e05-6e13-4df6-af50-552401cf9ba2"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d3a554f4-cb2c-4fb5-b03a-f22e8b0f8f70"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d3a554f4-cb2c-4fb5-b03a-f22e8b0f8f70"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/d45717d2-9bca-435c-94aa-56932d81d2cc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/d45717d2-9bca-435c-94aa-56932d81d2cc"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d45717d2-9bca-435c-94aa-56932d81d2cc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2025-01-15"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255b49de-6cd5-4ac1-b6fb-c8d0128cf1b3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/output.json new file mode 100644 index 00000000..005213b5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/output.json @@ -0,0 +1,248 @@ +{ + "resourceType": "Parameters", + "id": "d1c94e5f-4ff1-4ace-8330-d109c35e8dc7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.027.58" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b4d44313-868d-4b65-8e98-937c424f8bc6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 2 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2025-01-15" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/bc7aac49-f6a2-4d50-ba08-a6f974e26dfc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bc7aac49-f6a2-4d50-ba08-a6f974e26dfc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "23816" + } ], + "text": "Simvastatin" + }, + "strength": { + "numerator": { + "value": 20, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f6e71e5c-62a1-42dc-a0b3-f9540dc23897", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a7f65ddd-2f1f-427d-9db8-f27ae6ceaaa6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/output.xml new file mode 100644 index 00000000..ac4e7c1d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_MV2_VerordnungArzt_d1c94e5f/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d1c94e5f-4ff1-4ace-8330-d109c35e8dc7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.027.58"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b4d44313-868d-4b65-8e98-937c424f8bc6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="2"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2025-01-15"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:807f02b0-0431-4f36-b052-77ae77f4157b"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bc7aac49-f6a2-4d50-ba08-a6f974e26dfc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bc7aac49-f6a2-4d50-ba08-a6f974e26dfc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="23816"/> + </coding> + <text value="Simvastatin"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="20"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f6e71e5c-62a1-42dc-a0b3-f9540dc23897"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a7f65ddd-2f1f-427d-9db8-f27ae6ceaaa6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/input.xml new file mode 100644 index 00000000..3c530cf0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/input.xml @@ -0,0 +1,406 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cf0d4980-af01-44f4-a38c-d6bf14b82e07"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7a0b2d5e-8660-47b2-b26a-0e3dbba4399d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0886a530-68ef-4517-9999-b24f79b08da1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2024-11-27"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3ccc266-b033-47cc-9361-98ec450f7db9"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a3ccc266-b033-47cc-9361-98ec450f7db9"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3ccc266-b033-47cc-9361-98ec450f7db9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Retardtabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="11900"/> + </coding> + <text value="Diclofenac-Natrium"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="75"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/output.json new file mode 100644 index 00000000..bacd88d7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/output.json @@ -0,0 +1,242 @@ +{ + "resourceType": "Parameters", + "id": "2d950b54-3c16-46ff-a066-e2cfe7df21d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.021.76" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "99fcc4be-478c-436f-ba85-15f0df2616ea", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/0eb9adcd-6096-4bd3-85ad-c4bf0d6389b0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0eb9adcd-6096-4bd3-85ad-c4bf0d6389b0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "form": { + "text": "Retardtabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "11900" + } ], + "text": "Diclofenac-Natrium" + }, + "strength": { + "numerator": { + "value": 75, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "05b53220-f936-4207-94db-c5ddf881917c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f2127273-2b98-4273-ba0b-636a6acb6806", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/output.xml new file mode 100644 index 00000000..8b6a8041 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_2d950b54/output.xml @@ -0,0 +1,243 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2d950b54-3c16-46ff-a066-e2cfe7df21d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="99fcc4be-478c-436f-ba85-15f0df2616ea"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0eb9adcd-6096-4bd3-85ad-c4bf0d6389b0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0eb9adcd-6096-4bd3-85ad-c4bf0d6389b0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <form> + <text value="Retardtabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="11900"/> + </coding> + <text value="Diclofenac-Natrium"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="75"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="05b53220-f936-4207-94db-c5ddf881917c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f2127273-2b98-4273-ba0b-636a6acb6806"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/input.xml new file mode 100644 index 00000000..1dcbc657 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/input.xml @@ -0,0 +1,406 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cf0d4980-af01-44f4-a38c-d6bf14b82e07"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7a0b2d5e-8660-47b2-b26a-0e3dbba4399d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0886a530-68ef-4517-9999-b24f79b08da1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0886a530-68ef-4517-9999-b24f79b08da1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2023-07-27"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3ccc266-b033-47cc-9361-98ec450f7db9"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a3ccc266-b033-47cc-9361-98ec450f7db9"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3ccc266-b033-47cc-9361-98ec450f7db9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Retardtabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="11900"/> + </coding> + <text value="Diclofenac-Natrium"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="75"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/output.json new file mode 100644 index 00000000..011d014a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/output.json @@ -0,0 +1,242 @@ +{ + "resourceType": "Parameters", + "id": "c49e3851-dcfa-45e5-a6a7-9091cc3b8b2f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.021.76" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "f8596dcd-8f7e-4f86-acc6-585ab45f855c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/2b0d2067-41cf-46b3-a589-70a09481f4df" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2b0d2067-41cf-46b3-a589-70a09481f4df", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "form": { + "text": "Retardtabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "20" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "11900" + } ], + "text": "Diclofenac-Natrium" + }, + "strength": { + "numerator": { + "value": 75, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "1519454c-768b-4d0c-bf26-c842845de5f0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d1947a8c-cd83-42cc-9840-532a09f4c83b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/output.xml new file mode 100644 index 00000000..6b603c54 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_Unfall_VerordnungArzt_c49e3851/output.xml @@ -0,0 +1,243 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c49e3851-dcfa-45e5-a6a7-9091cc3b8b2f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.021.76"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f8596dcd-8f7e-4f86-acc6-585ab45f855c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/2b0d2067-41cf-46b3-a589-70a09481f4df"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2b0d2067-41cf-46b3-a589-70a09481f4df"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <form> + <text value="Retardtabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="20"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="11900"/> + </coding> + <text value="Diclofenac-Natrium"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="75"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1519454c-768b-4d0c-bf26-c842845de5f0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d1947a8c-cd83-42cc-9840-532a09f4c83b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/input.xml new file mode 100644 index 00000000..b44c7f76 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/output.json new file mode 100644 index 00000000..a5efb907 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "86dcf637-1d9f-428a-9b72-5dbb8570bf34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "940204d6-6481-4de4-9bff-24760bf5bb46", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b3bd044e-51f7-4f9b-b246-4b8e124091f6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b3bd044e-51f7-4f9b-b246-4b8e124091f6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "bdfa0c2d-daab-4774-ba68-f03243d2a747", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "0a90b855-fea0-44b8-9ab9-af031ca3ec3f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/output.xml new file mode 100644 index 00000000..456018fc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_86dcf637/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="86dcf637-1d9f-428a-9b72-5dbb8570bf34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="940204d6-6481-4de4-9bff-24760bf5bb46"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b3bd044e-51f7-4f9b-b246-4b8e124091f6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b3bd044e-51f7-4f9b-b246-4b8e124091f6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="bdfa0c2d-daab-4774-ba68-f03243d2a747"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0a90b855-fea0-44b8-9ab9-af031ca3ec3f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/input.xml new file mode 100644 index 00000000..ad651cf7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/output.json new file mode 100644 index 00000000..0bd386a1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "e065344f-6a41-4da4-adbb-e9526a356281", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "01c54bdb-52e5-4978-9114-e2410b5bf694", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/66be3439-b2c9-4f1e-877c-4107a05f7e49" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "66be3439-b2c9-4f1e-877c-4107a05f7e49", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "63f0cde3-751e-4bb7-97d4-2f1f5349e921", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "cf950eb5-0247-4b25-a51d-9794500552dd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/output.xml new file mode 100644 index 00000000..0d1e8a6b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V1_VerordnungArzt_e065344f/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e065344f-6a41-4da4-adbb-e9526a356281"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="01c54bdb-52e5-4978-9114-e2410b5bf694"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/66be3439-b2c9-4f1e-877c-4107a05f7e49"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="66be3439-b2c9-4f1e-877c-4107a05f7e49"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="63f0cde3-751e-4bb7-97d4-2f1f5349e921"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cf950eb5-0247-4b25-a51d-9794500552dd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/input.xml new file mode 100644 index 00000000..b44c7f76 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/output.json new file mode 100644 index 00000000..fbb82a46 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "1951fd21-d593-442d-9139-1c8b57597feb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "55087ec1-bf5d-4e60-829d-0256c23f6755", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/5ea16472-ec94-4f86-99b7-dbd804f8760d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5ea16472-ec94-4f86-99b7-dbd804f8760d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "c124fb65-6505-4324-9f70-e068e27e2ce1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "37439d2b-8e0f-479d-8b8e-7efdbffc2742", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/output.xml new file mode 100644 index 00000000..ba2a3bd6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_1951fd21/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1951fd21-d593-442d-9139-1c8b57597feb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="55087ec1-bf5d-4e60-829d-0256c23f6755"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5ea16472-ec94-4f86-99b7-dbd804f8760d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5ea16472-ec94-4f86-99b7-dbd804f8760d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c124fb65-6505-4324-9f70-e068e27e2ce1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="37439d2b-8e0f-479d-8b8e-7efdbffc2742"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/input.xml new file mode 100644 index 00000000..ad651cf7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/output.json new file mode 100644 index 00000000..3e20d220 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "68631a1b-0d0d-41e1-b959-bbf15a83082d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e20e77ed-3873-4ff5-b935-55e865fb47a9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/0da2a3f7-4c6d-4cf7-826f-b80700fd3d5c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0da2a3f7-4c6d-4cf7-826f-b80700fd3d5c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6cff63ea-cae9-47f1-a50b-817f024ef7af", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "3fb283f7-ac68-4a74-8df9-0940076cb181", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/output.xml new file mode 100644 index 00000000..16437d19 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V2_VerordnungArzt_68631a1b/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="68631a1b-0d0d-41e1-b959-bbf15a83082d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e20e77ed-3873-4ff5-b935-55e865fb47a9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0da2a3f7-4c6d-4cf7-826f-b80700fd3d5c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0da2a3f7-4c6d-4cf7-826f-b80700fd3d5c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6cff63ea-cae9-47f1-a50b-817f024ef7af"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="3fb283f7-ac68-4a74-8df9-0940076cb181"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/input.xml new file mode 100644 index 00000000..ad651cf7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/output.json new file mode 100644 index 00000000..4d8fff6f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "a07c7844-d45a-46e6-be63-1f15f560eced", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "69137af1-37c4-42c7-a441-4bfd48fd8175", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/341045da-cbb5-4db4-bd27-5bec94f9550d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "341045da-cbb5-4db4-bd27-5bec94f9550d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "78c82665-0db6-4356-9788-aa343ff64802", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "50d178f8-e052-4c31-8fc1-621fb94286cf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/output.xml new file mode 100644 index 00000000..0b733302 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_a07c7844/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a07c7844-d45a-46e6-be63-1f15f560eced"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="69137af1-37c4-42c7-a441-4bfd48fd8175"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/341045da-cbb5-4db4-bd27-5bec94f9550d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="341045da-cbb5-4db4-bd27-5bec94f9550d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="78c82665-0db6-4356-9788-aa343ff64802"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="50d178f8-e052-4c31-8fc1-621fb94286cf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/input.xml new file mode 100644 index 00000000..b44c7f76 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/output.json new file mode 100644 index 00000000..2f0c73d7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "f7577903-394a-4d4c-98b6-282ddd7f9daa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "954da6f0-632d-4369-8ce7-0ef641d5d274", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b55f176a-afeb-448b-899f-c41162da608a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b55f176a-afeb-448b-899f-c41162da608a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8776233b-3a50-4501-82ab-0e5c84e2569f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "7aac2b2b-ebee-45ca-ad99-9431149051bc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/output.xml new file mode 100644 index 00000000..f955d1e8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V3_VerordnungArzt_f7577903/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f7577903-394a-4d4c-98b6-282ddd7f9daa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="954da6f0-632d-4369-8ce7-0ef641d5d274"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b55f176a-afeb-448b-899f-c41162da608a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b55f176a-afeb-448b-899f-c41162da608a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8776233b-3a50-4501-82ab-0e5c84e2569f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7aac2b2b-ebee-45ca-ad99-9431149051bc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/input.xml new file mode 100644 index 00000000..ad651cf7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/output.json new file mode 100644 index 00000000..8c86e24c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "ea19671f-18c5-4ae6-9ef1-ca48509bddee", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1269976b-f90f-4a1f-aaf9-58f2e6c96686", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/e79b8765-4b4f-45d6-ac59-5b4a57c80d19" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e79b8765-4b4f-45d6-ac59-5b4a57c80d19", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b5d2f04a-a222-4108-8c27-1e21840a95c9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4470b42c-13b5-4eb9-bf3b-c404d62adea7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/output.xml new file mode 100644 index 00000000..3572077b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_ea19671f/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ea19671f-18c5-4ae6-9ef1-ca48509bddee"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1269976b-f90f-4a1f-aaf9-58f2e6c96686"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e79b8765-4b4f-45d6-ac59-5b4a57c80d19"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e79b8765-4b4f-45d6-ac59-5b4a57c80d19"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b5d2f04a-a222-4108-8c27-1e21840a95c9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4470b42c-13b5-4eb9-bf3b-c404d62adea7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/input.xml new file mode 100644 index 00000000..b44c7f76 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c85a2a5-92ee-4a57-83cb-ba90a0df2a21"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4ca03203-b01b-4b4c-aeac-c36adb30ea34"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/4a7eefdd-df71-4a72-8047-c158017534a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a7eefdd-df71-4a72-8047-c158017534a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/output.json new file mode 100644 index 00000000..7c29fc2d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/output.json @@ -0,0 +1,250 @@ +{ + "resourceType": "Parameters", + "id": "fa6f0220-fa3d-4823-86a2-49f4ceac633e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.019.82" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0d2b9eed-f8f2-477d-a9b9-ffe93a89d2e9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/23b396cf-720e-4dfe-a85c-40c893c3bb4c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat." + } ], + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "23b396cf-720e-4dfe-a85c-40c893c3bb4c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5a7974a6-3ab8-44f2-b867-304024927e98", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a4919b37-f09b-4d1d-9d0c-3b5fa0ddfa6a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/output.xml new file mode 100644 index 00000000..85aea413 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationIngredient/WS_V4_VerordnungArzt_fa6f0220/output.xml @@ -0,0 +1,250 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fa6f0220-fa3d-4823-86a2-49f4ceac633e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.019.82"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0d2b9eed-f8f2-477d-a9b9-ffe93a89d2e9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/23b396cf-720e-4dfe-a85c-40c893c3bb4c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Bitte längliche Tabletten, da Patient Probleme mit dem Schlucken von runden hat."/> + </note> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="23b396cf-720e-4dfe-a85c-40c893c3bb4c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5a7974a6-3ab8-44f2-b867-304024927e98"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a4919b37-f09b-4d1d-9d0c-3b5fa0ddfa6a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/input.xml new file mode 100644 index 00000000..da6a5834 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="475e9667-6035-46f7-93a0-b5670db0d9e4"/> + <meta> + <lastUpdated value="2024-02-08T19:12:22.040+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.797.78"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:12:22.040+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/0160de5b-87dd-44fa-8d35-1d63f95e3f2b"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="0160de5b-87dd-44fa-8d35-1d63f95e3f2b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <date value="2024-02-08T19:12:22+01:00"/> + <author> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/9b1df1a4-e4fc-40ac-8bdd-d838a414eff6"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/7050c523-c612-4440-a6f9-d07f3ac52b5e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7050c523-c612-4440-a6f9-d07f3ac52b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="45323114"/> + </coding> + <text value="Hydvofloxnin"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1963-08-18"/> + <address> + <type value="both"/> + <line value="Friedrich-List-Str. 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Friedrich-List-Str."/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="40934"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="268d5615-319b-448d-884a-ce034b70d01c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="47"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/e11c162b-d22c-4576-88e2-21a9c878c33e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108433248"/> + </identifier> + <display value="Siemens‐Betriebskrankenkasse SBK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/9b1df1a4-e4fc-40ac-8bdd-d838a414eff6"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9b1df1a4-e4fc-40ac-8bdd-d838a414eff6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-02-08"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7050c523-c612-4440-a6f9-d07f3ac52b5e"/> + </medicationReference> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + </requester> + <insurance> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/output.json new file mode 100644 index 00000000..ed8c2a42 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "02fcf3a5-1f45-4d89-a3e2-1c5ec77197ae", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.797.78" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6ed41e59-29ed-49e6-887d-e9709fae3da4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-02-08" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:13061707" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/974e2edb-8a73-4a61-93c2-cb71b7a15a64" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "974e2edb-8a73-4a61-93c2-cb71b7a15a64", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "45323114" + } ], + "text": "Hydvofloxnin" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0f7e021f-6cae-47ad-9cff-3fdc7c002c04", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "711020854" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0340) 561450343" + }, { + "system": "email", + "value": "saphira.schaffarzik@jungbluth.name" + } ], + "address": [ { + "type": "both", + "line": [ "Am Arenzberg 46b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "46b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Am Arenzberg" + } ] + } ], + "city": "Jessicafeld", + "postalCode": "12141", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "165995cf-c893-4e56-8fba-bc7d8dbdb011", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "616562658" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/output.xml new file mode 100644 index 00000000..9a00585c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_02fcf3a5/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="02fcf3a5-1f45-4d89-a3e2-1c5ec77197ae"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.797.78"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6ed41e59-29ed-49e6-887d-e9709fae3da4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-02-08"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/974e2edb-8a73-4a61-93c2-cb71b7a15a64"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="974e2edb-8a73-4a61-93c2-cb71b7a15a64"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="45323114"/> + </coding> + <text value="Hydvofloxnin"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0f7e021f-6cae-47ad-9cff-3fdc7c002c04"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="165995cf-c893-4e56-8fba-bc7d8dbdb011"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/input.xml new file mode 100644 index 00000000..31bb97b0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="fce076cc-c76a-4acd-b42d-d6bdda0bf4a3"/> + <meta> + <lastUpdated value="2024-02-08T19:03:55.369+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.758.98"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:55.369+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/14d4c9fc-9b54-4ef4-b0fe-d831e9d9a07f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="14d4c9fc-9b54-4ef4-b0fe-d831e9d9a07f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/52af791c-bd2e-40df-a1f2-6d7559343788"/> + </subject> + <date value="2024-02-08T19:03:55+01:00"/> + <author> + <reference value="Practitioner/d65e2b70-69c1-4ada-bca9-dddac1702956"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/9b5e2a34-195d-4e0b-b2d6-03e7fdc50537"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/d49a1ab0-3cc6-4232-b448-a51d94aa9868"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/1a4ddbce-70f3-459f-8bf6-7bce6c624b1b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/31854a03-ec93-4ff2-ad12-b2e7fab74099"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="31854a03-ec93-4ff2-ad12-b2e7fab74099"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/52af791c-bd2e-40df-a1f2-6d7559343788"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="52af791c-bd2e-40df-a1f2-6d7559343788"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1993-11-12"/> + <address> + <type value="both"/> + <line value="Feuerbachstr. 58"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="58"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Feuerbachstr."/> + </extension> + </line> + <city value="Sattelmaiergrün"/> + <postalCode value="42176"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/9b5e2a34-195d-4e0b-b2d6-03e7fdc50537"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9b5e2a34-195d-4e0b-b2d6-03e7fdc50537"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="015446034"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-929-6020489"/> + </telecom> + <telecom> + <system value="email"/> + <value value="johannes.ahrens@bogdashin.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Köttershof 163"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="163"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Köttershof"/> + </extension> + </line> + <city value="Lyafeld"/> + <postalCode value="17418"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/d49a1ab0-3cc6-4232-b448-a51d94aa9868"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="d49a1ab0-3cc6-4232-b448-a51d94aa9868"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/b60e929f-9413-4c9c-a625-0efb8e2a1f7a"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104926494"/> + </identifier> + <display value="Vaillant BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/d65e2b70-69c1-4ada-bca9-dddac1702956"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d65e2b70-69c1-4ada-bca9-dddac1702956"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="088952773"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/1a4ddbce-70f3-459f-8bf6-7bce6c624b1b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1a4ddbce-70f3-459f-8bf6-7bce6c624b1b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/31854a03-ec93-4ff2-ad12-b2e7fab74099"/> + </medicationReference> + <subject> + <reference value="Patient/52af791c-bd2e-40df-a1f2-6d7559343788"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/d65e2b70-69c1-4ada-bca9-dddac1702956"/> + </requester> + <insurance> + <reference value="Coverage/d49a1ab0-3cc6-4232-b448-a51d94aa9868"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/output.json new file mode 100644 index 00000000..bd72631d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "0854ff7a-096e-4b05-8891-d65377ef8c2f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.758.98" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3dc68924-cbce-4034-ac05-2d01e0f14383", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c74ef147-3427-424c-9161-fd6456963df4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c74ef147-3427-424c-9161-fd6456963df4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "604c6a21-ac2e-4b91-8dfa-f5818ccc4df7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "015446034" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-929-6020489" + }, { + "system": "email", + "value": "johannes.ahrens@bogdashin.name" + } ], + "address": [ { + "type": "both", + "line": [ "Köttershof 163" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "163" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Köttershof" + } ] + } ], + "city": "Lyafeld", + "postalCode": "17418", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "538ccf27-e854-4781-ba90-c76c5f074111", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "088952773" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/output.xml new file mode 100644 index 00000000..c9549b8c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0854ff7a/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0854ff7a-096e-4b05-8891-d65377ef8c2f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.758.98"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3dc68924-cbce-4034-ac05-2d01e0f14383"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c74ef147-3427-424c-9161-fd6456963df4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c74ef147-3427-424c-9161-fd6456963df4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="604c6a21-ac2e-4b91-8dfa-f5818ccc4df7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="015446034"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-929-6020489"/> + </telecom> + <telecom> + <system value="email"/> + <value value="johannes.ahrens@bogdashin.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Köttershof 163"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="163"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Köttershof"/> + </extension> + </line> + <city value="Lyafeld"/> + <postalCode value="17418"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="538ccf27-e854-4781-ba90-c76c5f074111"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="088952773"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/input.xml new file mode 100644 index 00000000..8909d21d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="45a9ad90-cd13-47ce-979b-03b3eb68e4d1"/> + <meta> + <lastUpdated value="2024-02-08T19:01:20.654+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.743.46"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:01:20.654+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/2bb80506-72d4-4a0c-b961-7e95e620f6ff"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2bb80506-72d4-4a0c-b961-7e95e620f6ff"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/cb57a234-a70e-4b09-a2ce-269bdc6dc427"/> + </subject> + <date value="2024-02-08T19:01:20+01:00"/> + <author> + <reference value="Practitioner/e36eaabf-7ea4-46c7-b876-afc2b94800b7"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/495a6929-56cb-4428-b911-ec9de279b884"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b12df018-0540-4a68-b8fc-1288dc83e9bd"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/cffcc37f-beeb-4f1a-bdff-c0d1c3099943"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/98670442-3d6e-4199-a1a7-45011daa2d53"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="98670442-3d6e-4199-a1a7-45011daa2d53"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/cb57a234-a70e-4b09-a2ce-269bdc6dc427"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="cb57a234-a70e-4b09-a2ce-269bdc6dc427"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1968-08-23"/> + <address> + <type value="both"/> + <line value="Lohrstr. 15c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lohrstr."/> + </extension> + </line> + <city value="Bestberg"/> + <postalCode value="20862"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/495a6929-56cb-4428-b911-ec9de279b884"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="495a6929-56cb-4428-b911-ec9de279b884"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="525817115"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0901) 412592712"/> + </telecom> + <telecom> + <system value="email"/> + <value value="dilara.kahl@klinger.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Schießbergstr. 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schießbergstr."/> + </extension> + </line> + <city value="Emiliahagen"/> + <postalCode value="70859"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b12df018-0540-4a68-b8fc-1288dc83e9bd"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b12df018-0540-4a68-b8fc-1288dc83e9bd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="02"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/356617a2-fae6-4fd1-aedc-1486da84440e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104224634"/> + </identifier> + <display value="BKK Deutsche Bank AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/e36eaabf-7ea4-46c7-b876-afc2b94800b7"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e36eaabf-7ea4-46c7-b876-afc2b94800b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="367206462"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/cffcc37f-beeb-4f1a-bdff-c0d1c3099943"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="cffcc37f-beeb-4f1a-bdff-c0d1c3099943"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/98670442-3d6e-4199-a1a7-45011daa2d53"/> + </medicationReference> + <subject> + <reference value="Patient/cb57a234-a70e-4b09-a2ce-269bdc6dc427"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/e36eaabf-7ea4-46c7-b876-afc2b94800b7"/> + </requester> + <insurance> + <reference value="Coverage/b12df018-0540-4a68-b8fc-1288dc83e9bd"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/output.json new file mode 100644 index 00000000..af812361 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "09045269-e500-4a27-9c75-dcc32404701f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.743.46" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0a6f4d0d-1cd7-4dd3-8f75-67772f961816", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3288db97-6639-4f97-bdee-3ea070dd537f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3288db97-6639-4f97-bdee-3ea070dd537f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "ab452531-93f0-4483-902d-0f7ac019a9ff", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "525817115" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0901) 412592712" + }, { + "system": "email", + "value": "dilara.kahl@klinger.net" + } ], + "address": [ { + "type": "both", + "line": [ "Schießbergstr. 3" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "3" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Schießbergstr." + } ] + } ], + "city": "Emiliahagen", + "postalCode": "70859", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f36a31f8-e1e6-4ab7-8e85-15f89bbabe50", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "367206462" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/output.xml new file mode 100644 index 00000000..d4993f5c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_09045269/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="09045269-e500-4a27-9c75-dcc32404701f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.743.46"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0a6f4d0d-1cd7-4dd3-8f75-67772f961816"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3288db97-6639-4f97-bdee-3ea070dd537f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3288db97-6639-4f97-bdee-3ea070dd537f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ab452531-93f0-4483-902d-0f7ac019a9ff"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="525817115"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0901) 412592712"/> + </telecom> + <telecom> + <system value="email"/> + <value value="dilara.kahl@klinger.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Schießbergstr. 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schießbergstr."/> + </extension> + </line> + <city value="Emiliahagen"/> + <postalCode value="70859"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f36a31f8-e1e6-4ab7-8e85-15f89bbabe50"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="367206462"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/input.xml new file mode 100644 index 00000000..bfad4b45 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="bddb1f9e-3ace-4e46-91aa-fde4ae9476a4"/> + <meta> + <lastUpdated value="2024-02-08T19:09:44.694+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.694.65"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:09:44.694+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/6d549094-f741-4b83-9a64-fdb53a7c072e"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6d549094-f741-4b83-9a64-fdb53a7c072e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/2d93cb84-911d-48ac-a7dd-ee088a73f6d5"/> + </subject> + <date value="2024-02-08T19:09:44+01:00"/> + <author> + <reference value="Practitioner/e9e8839f-7be8-4a38-b1f4-941e49cb79b0"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/70f1f9dd-901a-4504-bb23-a9ad5cead1a6"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/8e490d99-5eab-4829-bf40-8275cc1e5fbc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/50ecbff4-026b-48fe-bf27-598301687b31"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/49bb3cc1-e2e6-45ca-857a-64a95ad2ac4d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="49bb3cc1-e2e6-45ca-857a-64a95ad2ac4d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09700354"/> + </coding> + <text value="Adavomilcain"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/2d93cb84-911d-48ac-a7dd-ee088a73f6d5"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="2d93cb84-911d-48ac-a7dd-ee088a73f6d5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="2004-07-31"/> + <address> + <type value="both"/> + <line value="Stettiner Str. 30c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="30c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Stettiner Str."/> + </extension> + </line> + <city value="Nadjaburg"/> + <postalCode value="83842"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/70f1f9dd-901a-4504-bb23-a9ad5cead1a6"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="70f1f9dd-901a-4504-bb23-a9ad5cead1a6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="209739478"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02711) 4600399"/> + </telecom> + <telecom> + <system value="email"/> + <value value="rené.uhrig@engel.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Heinrich-von-Kleist-Str. 75b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="75b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heinrich-von-Kleist-Str."/> + </extension> + </line> + <city value="Ehmbrunn"/> + <postalCode value="75097"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/8e490d99-5eab-4829-bf40-8275cc1e5fbc"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="8e490d99-5eab-4829-bf40-8275cc1e5fbc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="61"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ad52da10-2a59-4274-9797-a31fc71e899a"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108029306"/> + </identifier> + <display value="BKK advita"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/e9e8839f-7be8-4a38-b1f4-941e49cb79b0"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e9e8839f-7be8-4a38-b1f4-941e49cb79b0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="238658744"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/50ecbff4-026b-48fe-bf27-598301687b31"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="50ecbff4-026b-48fe-bf27-598301687b31"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:e554a5a0-47a2-42dd-8b34-a6dd1e84b8b7"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/49bb3cc1-e2e6-45ca-857a-64a95ad2ac4d"/> + </medicationReference> + <subject> + <reference value="Patient/2d93cb84-911d-48ac-a7dd-ee088a73f6d5"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/e9e8839f-7be8-4a38-b1f4-941e49cb79b0"/> + </requester> + <insurance> + <reference value="Coverage/8e490d99-5eab-4829-bf40-8275cc1e5fbc"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/output.json new file mode 100644 index 00000000..61260d5d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "0d6a22d4-92ea-4317-9f4e-c125c74855d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.694.65" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "960dba29-ae9d-4c74-a974-7136ded8f1e6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-04" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:e554a5a0-47a2-42dd-8b34-a6dd1e84b8b7" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/650cae11-d5ea-4ba5-a796-c1ab03a6eb47" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "650cae11-d5ea-4ba5-a796-c1ab03a6eb47", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09700354" + } ], + "text": "Adavomilcain" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9a89df70-d79d-45f8-b7d5-787ac11c022c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "209739478" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(02711) 4600399" + }, { + "system": "email", + "value": "rené.uhrig@engel.com" + } ], + "address": [ { + "type": "both", + "line": [ "Heinrich-von-Kleist-Str. 75b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "75b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Heinrich-von-Kleist-Str." + } ] + } ], + "city": "Ehmbrunn", + "postalCode": "75097", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c12fd7dc-1ab4-4985-a69f-1246ec3a0d1d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "238658744" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/output.xml new file mode 100644 index 00000000..9e5818fd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_0d6a22d4/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0d6a22d4-92ea-4317-9f4e-c125c74855d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.694.65"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="960dba29-ae9d-4c74-a974-7136ded8f1e6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:e554a5a0-47a2-42dd-8b34-a6dd1e84b8b7"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/650cae11-d5ea-4ba5-a796-c1ab03a6eb47"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="650cae11-d5ea-4ba5-a796-c1ab03a6eb47"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09700354"/> + </coding> + <text value="Adavomilcain"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9a89df70-d79d-45f8-b7d5-787ac11c022c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="209739478"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02711) 4600399"/> + </telecom> + <telecom> + <system value="email"/> + <value value="rené.uhrig@engel.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Heinrich-von-Kleist-Str. 75b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="75b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heinrich-von-Kleist-Str."/> + </extension> + </line> + <city value="Ehmbrunn"/> + <postalCode value="75097"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c12fd7dc-1ab4-4985-a69f-1246ec3a0d1d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="238658744"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/input.xml new file mode 100644 index 00000000..d0859f6f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="09e5d103-158c-4926-b043-50aeaa06951e"/> + <meta> + <lastUpdated value="2024-02-08T19:07:57.112+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.690.77"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:07:57.112+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/65d091bf-c7cc-474f-b1c7-59788e420e60"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="65d091bf-c7cc-474f-b1c7-59788e420e60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/f6f0a3e5-bc11-4444-a52c-eaddacadb291"/> + </subject> + <date value="2024-02-08T19:07:57+01:00"/> + <author> + <reference value="Practitioner/8d36b557-4568-41b9-9e67-6cbd89d783b1"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/77ab1ef2-82b9-4954-ab5d-807d33b33258"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b9af01b1-37e3-4445-8e0b-ab0e04c236aa"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/eef73e6f-fe8a-485c-aa13-537070311ebc"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/5d524fd1-9f6f-4a89-b14e-7c2b14bc0c24"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5d524fd1-9f6f-4a89-b14e-7c2b14bc0c24"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="47126688"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/f6f0a3e5-bc11-4444-a52c-eaddacadb291"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="f6f0a3e5-bc11-4444-a52c-eaddacadb291"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1990-02-03"/> + <address> + <type value="both"/> + <line value="Am Heidkamp 65b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="65b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Heidkamp"/> + </extension> + </line> + <city value="Groß Ianstadt"/> + <postalCode value="34551"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/77ab1ef2-82b9-4954-ab5d-807d33b33258"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="77ab1ef2-82b9-4954-ab5d-807d33b33258"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="029576346"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(01397) 5739283"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lydia.gaba@proske.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Piet-Mondrian-Str. 852"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="852"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Piet-Mondrian-Str."/> + </extension> + </line> + <city value="Schön Charlotta"/> + <postalCode value="92584"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b9af01b1-37e3-4445-8e0b-ab0e04c236aa"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b9af01b1-37e3-4445-8e0b-ab0e04c236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="88"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/2ae86d18-a95a-407b-94a8-680a330f3547"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108833355"/> + </identifier> + <display value="BKK Akzo Nobel ‐Bayern‐"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/8d36b557-4568-41b9-9e67-6cbd89d783b1"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8d36b557-4568-41b9-9e67-6cbd89d783b1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="570752613"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/eef73e6f-fe8a-485c-aa13-537070311ebc"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="eef73e6f-fe8a-485c-aa13-537070311ebc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5d524fd1-9f6f-4a89-b14e-7c2b14bc0c24"/> + </medicationReference> + <subject> + <reference value="Patient/f6f0a3e5-bc11-4444-a52c-eaddacadb291"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/8d36b557-4568-41b9-9e67-6cbd89d783b1"/> + </requester> + <insurance> + <reference value="Coverage/b9af01b1-37e3-4445-8e0b-ab0e04c236aa"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/output.json new file mode 100644 index 00000000..296ff92b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "11cffc5c-5f6b-43e8-8424-c537754b1528", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.690.77" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "ea424f03-9433-4c99-8656-4791b87b8edf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/42f50541-e1a0-49c6-bb04-2f532c4b5ba3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "42f50541-e1a0-49c6-bb04-2f532c4b5ba3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "47126688" + } ], + "text": "Zytostatika" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "7b11ff5f-5b2e-40e1-832e-bee8812589c8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "029576346" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(01397) 5739283" + }, { + "system": "email", + "value": "lydia.gaba@proske.info" + } ], + "address": [ { + "type": "both", + "line": [ "Piet-Mondrian-Str. 852" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "852" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Piet-Mondrian-Str." + } ] + } ], + "city": "Schön Charlotta", + "postalCode": "92584", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "26aabd0d-51bf-42cd-b2ac-5863c7ca31f8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "570752613" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/output.xml new file mode 100644 index 00000000..009fa45d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_11cffc5c/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="11cffc5c-5f6b-43e8-8424-c537754b1528"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.690.77"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ea424f03-9433-4c99-8656-4791b87b8edf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/42f50541-e1a0-49c6-bb04-2f532c4b5ba3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="42f50541-e1a0-49c6-bb04-2f532c4b5ba3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="47126688"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="7b11ff5f-5b2e-40e1-832e-bee8812589c8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="029576346"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(01397) 5739283"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lydia.gaba@proske.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Piet-Mondrian-Str. 852"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="852"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Piet-Mondrian-Str."/> + </extension> + </line> + <city value="Schön Charlotta"/> + <postalCode value="92584"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="26aabd0d-51bf-42cd-b2ac-5863c7ca31f8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="570752613"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/input.xml new file mode 100644 index 00000000..72375c53 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="df4a4b64-dcec-4b73-92f6-9b5bda7291f9"/> + <meta> + <lastUpdated value="2024-02-13T11:24:06.338+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.837.87"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-13T11:24:06.338+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/f71b0d82-ac57-4247-98e4-1c96eb584a7c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f71b0d82-ac57-4247-98e4-1c96eb584a7c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/d007dda2-cbea-4708-9fca-99777a44cb14"/> + </subject> + <date value="2024-02-13T11:24:06+01:00"/> + <author> + <reference value="Practitioner/0ea0bb3d-be2b-4577-bf5e-7e3cc22ca5fb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/c5baf88d-8b89-4e82-9f4a-cea47b17aa51"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/07902dbe-f66f-4366-9fb5-76acb535faed"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/1ab1127c-6b7d-4e1f-90d8-248e5a68a5f5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/6a60028b-3166-4e77-a276-c315115a9860"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6a60028b-3166-4e77-a276-c315115a9860"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/d007dda2-cbea-4708-9fca-99777a44cb14"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="d007dda2-cbea-4708-9fca-99777a44cb14"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + <name> + <use value="official"/> + <family value="Gondern"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Gondern"/> + </extension> + </family> + <given value="Aenna"/> + </name> + <birthDate value="1982-03-31"/> + <address> + <type value="both"/> + <line value="Eichenweg 686"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="686"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Eichenweg"/> + </extension> + </line> + <city value="West Dominik"/> + <postalCode value="18822"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/c5baf88d-8b89-4e82-9f4a-cea47b17aa51"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c5baf88d-8b89-4e82-9f4a-cea47b17aa51"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="017186060"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-381-2710885"/> + </telecom> + <telecom> + <system value="email"/> + <value value="sam.kisabaka@gamper.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Heidehöhe 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heidehöhe"/> + </extension> + </line> + <city value="Bigdelifeld"/> + <postalCode value="07258"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/07902dbe-f66f-4366-9fb5-76acb535faed"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="07902dbe-f66f-4366-9fb5-76acb535faed"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="49"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ebf09214-51e9-451a-8b83-89804cd81e59"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108608820"/> + </identifier> + <display value="LKK Franken und Oberbayern"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/0ea0bb3d-be2b-4577-bf5e-7e3cc22ca5fb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0ea0bb3d-be2b-4577-bf5e-7e3cc22ca5fb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="421218808"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/1ab1127c-6b7d-4e1f-90d8-248e5a68a5f5"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1ab1127c-6b7d-4e1f-90d8-248e5a68a5f5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6a60028b-3166-4e77-a276-c315115a9860"/> + </medicationReference> + <subject> + <reference value="Patient/d007dda2-cbea-4708-9fca-99777a44cb14"/> + </subject> + <authoredOn value="2024-02-13"/> + <requester> + <reference value="Practitioner/0ea0bb3d-be2b-4577-bf5e-7e3cc22ca5fb"/> + </requester> + <insurance> + <reference value="Coverage/07902dbe-f66f-4366-9fb5-76acb535faed"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/output.json new file mode 100644 index 00000000..2e967485 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "13ef7eed-97af-477f-8cb7-33b438ceb81b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.474.837.87" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-13" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6fb5c77a-295b-42a3-a883-978345bafc9a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/73a55bc6-86b7-4f52-8c23-fb5bd62a8386" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-13", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "73a55bc6-86b7-4f52-8c23-fb5bd62a8386", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d9211856-d0f2-4952-8d40-6d841349343a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "017186060" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-381-2710885" + }, { + "system": "email", + "value": "sam.kisabaka@gamper.info" + } ], + "address": [ { + "type": "both", + "line": [ "Heidehöhe 26" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "26" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Heidehöhe" + } ] + } ], + "city": "Bigdelifeld", + "postalCode": "07258", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6b65884b-092e-49a9-9b01-d363dd6c9d11", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "421218808" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/output.xml new file mode 100644 index 00000000..78fe508e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_13ef7eed/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="13ef7eed-97af-477f-8cb7-33b438ceb81b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.837.87"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-13"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6fb5c77a-295b-42a3-a883-978345bafc9a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/73a55bc6-86b7-4f52-8c23-fb5bd62a8386"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-13"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="73a55bc6-86b7-4f52-8c23-fb5bd62a8386"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d9211856-d0f2-4952-8d40-6d841349343a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="017186060"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-381-2710885"/> + </telecom> + <telecom> + <system value="email"/> + <value value="sam.kisabaka@gamper.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Heidehöhe 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heidehöhe"/> + </extension> + </line> + <city value="Bigdelifeld"/> + <postalCode value="07258"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6b65884b-092e-49a9-9b01-d363dd6c9d11"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="421218808"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/input.xml new file mode 100644 index 00000000..896a4bc6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="617b672a-49b7-44ea-bf57-45549fc16c7a"/> + <meta> + <lastUpdated value="2024-02-08T19:04:47.509+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.763.83"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:04:47.509+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/59a4c284-e20f-4cf4-b798-817a60a75ba3"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="59a4c284-e20f-4cf4-b798-817a60a75ba3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/7af161cf-1e2f-4f7a-b215-892123cf0d67"/> + </subject> + <date value="2024-02-08T19:04:47+01:00"/> + <author> + <reference value="Practitioner/611c56d3-1475-4aec-890b-bf7caa277d53"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/8fa4b481-d173-4a0f-b363-fa4cd71886ae"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/90d9635b-bda9-45cb-a771-edfaf26166ae"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/240b740a-38a0-45fb-93af-3c0db018d511"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/4e2900dc-cee2-4343-84cd-a07347018b68"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4e2900dc-cee2-4343-84cd-a07347018b68"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/7af161cf-1e2f-4f7a-b215-892123cf0d67"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="7af161cf-1e2f-4f7a-b215-892123cf0d67"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1982-10-18"/> + <address> + <type value="both"/> + <line value="In der Wüste 62b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="62b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="In der Wüste"/> + </extension> + </line> + <city value="Alt Janhagen"/> + <postalCode value="53605"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/8fa4b481-d173-4a0f-b363-fa4cd71886ae"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8fa4b481-d173-4a0f-b363-fa4cd71886ae"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="628598894"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-5469-02854941"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mareike.schaffarzik@neupert.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Hamberger Str. 0"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="0"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hamberger Str."/> + </extension> + </line> + <city value="Klein Veronika"/> + <postalCode value="87026"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/90d9635b-bda9-45cb-a771-edfaf26166ae"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="90d9635b-bda9-45cb-a771-edfaf26166ae"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="47"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/2a5ac829-ef63-4e6b-a5d8-959e8a49477e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="106329225"/> + </identifier> + <display value="Debeka BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/611c56d3-1475-4aec-890b-bf7caa277d53"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="611c56d3-1475-4aec-890b-bf7caa277d53"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="271120832"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/240b740a-38a0-45fb-93af-3c0db018d511"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="240b740a-38a0-45fb-93af-3c0db018d511"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4e2900dc-cee2-4343-84cd-a07347018b68"/> + </medicationReference> + <subject> + <reference value="Patient/7af161cf-1e2f-4f7a-b215-892123cf0d67"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/611c56d3-1475-4aec-890b-bf7caa277d53"/> + </requester> + <insurance> + <reference value="Coverage/90d9635b-bda9-45cb-a771-edfaf26166ae"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/output.json new file mode 100644 index 00000000..049c43fc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "141bdd95-a5d0-407a-bf9a-23f122b489c9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.763.83" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9ca15ac5-9993-4e7f-bdf0-5efd57fa1bd3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/064b5b70-f2e6-494b-b0d8-b37684dd1f1d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "064b5b70-f2e6-494b-b0d8-b37684dd1f1d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2df46d3d-1b73-4b11-aa0e-01757e22152f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "628598894" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-5469-02854941" + }, { + "system": "email", + "value": "mareike.schaffarzik@neupert.de" + } ], + "address": [ { + "type": "both", + "line": [ "Hamberger Str. 0" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "0" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Hamberger Str." + } ] + } ], + "city": "Klein Veronika", + "postalCode": "87026", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "13d98bb8-fd59-43c7-9c71-bd3c04b8ef26", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "271120832" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/output.xml new file mode 100644 index 00000000..15bf552b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_141bdd95/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="141bdd95-a5d0-407a-bf9a-23f122b489c9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.763.83"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9ca15ac5-9993-4e7f-bdf0-5efd57fa1bd3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/064b5b70-f2e6-494b-b0d8-b37684dd1f1d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="064b5b70-f2e6-494b-b0d8-b37684dd1f1d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2df46d3d-1b73-4b11-aa0e-01757e22152f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="628598894"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-5469-02854941"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mareike.schaffarzik@neupert.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Hamberger Str. 0"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="0"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hamberger Str."/> + </extension> + </line> + <city value="Klein Veronika"/> + <postalCode value="87026"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="13d98bb8-fd59-43c7-9c71-bd3c04b8ef26"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="271120832"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/input.xml new file mode 100644 index 00000000..b4455cc7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5d6fae1d-0122-44ab-b697-aa740f389624"/> + <meta> + <lastUpdated value="2024-02-08T19:00:13.562+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.740.55"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:00:13.562+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/57151291-0629-4c86-ad85-4e264cc9d162"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="57151291-0629-4c86-ad85-4e264cc9d162"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/dda1ced0-80d2-4248-bce6-a0474f688b56"/> + </subject> + <date value="2024-02-08T19:00:13+01:00"/> + <author> + <reference value="Practitioner/809cb76c-01d7-405b-b788-176e3b8528eb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/37148422-0e59-40e1-b9fd-8cf03be9f37f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/1dbdf07f-d8de-44e9-9a83-b512dd0f808c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/9c283609-db40-408c-9563-862b9b03e4a9"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/6cbfa774-2875-4c4e-a158-0b01299011fc"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6cbfa774-2875-4c4e-a158-0b01299011fc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/dda1ced0-80d2-4248-bce6-a0474f688b56"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="dda1ced0-80d2-4248-bce6-a0474f688b56"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="2005-04-30"/> + <address> + <type value="both"/> + <line value="Maria-Terwiel-Str. 96a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="96a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Maria-Terwiel-Str."/> + </extension> + </line> + <city value="West Janek"/> + <postalCode value="66396"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/37148422-0e59-40e1-b9fd-8cf03be9f37f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="37148422-0e59-40e1-b9fd-8cf03be9f37f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="739445767"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0222) 778778860"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tina.filipowski@xn--tpfer-jua.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Moosweg 68c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="68c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Moosweg"/> + </extension> + </line> + <city value="Süd Marek"/> + <postalCode value="48927"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/1dbdf07f-d8de-44e9-9a83-b512dd0f808c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1dbdf07f-d8de-44e9-9a83-b512dd0f808c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/9a75a23d-c00d-4cc3-96ad-4fd93c754876"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101320043"/> + </identifier> + <display value="BKK Schleswig‐Holstein"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/809cb76c-01d7-405b-b788-176e3b8528eb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="809cb76c-01d7-405b-b788-176e3b8528eb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="755566422"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/9c283609-db40-408c-9563-862b9b03e4a9"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9c283609-db40-408c-9563-862b9b03e4a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6cbfa774-2875-4c4e-a158-0b01299011fc"/> + </medicationReference> + <subject> + <reference value="Patient/dda1ced0-80d2-4248-bce6-a0474f688b56"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/809cb76c-01d7-405b-b788-176e3b8528eb"/> + </requester> + <insurance> + <reference value="Coverage/1dbdf07f-d8de-44e9-9a83-b512dd0f808c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/output.json new file mode 100644 index 00000000..1138767e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "16ca6d24-f682-482d-9040-d69746625423", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.740.55" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "db66e7f5-48c6-4431-b7ac-ce2a00fc28d3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/6157088c-4610-4a56-9b50-1f307af80a20" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6157088c-4610-4a56-9b50-1f307af80a20", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5a5bb221-340a-410a-a57f-5031ac99da36", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "739445767" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0222) 778778860" + }, { + "system": "email", + "value": "tina.filipowski@xn--tpfer-jua.info" + } ], + "address": [ { + "type": "both", + "line": [ "Moosweg 68c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "68c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Moosweg" + } ] + } ], + "city": "Süd Marek", + "postalCode": "48927", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b13ddd90-f03b-4205-a558-8fe0ec60c74d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "755566422" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/output.xml new file mode 100644 index 00000000..cba912bf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_16ca6d24/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="16ca6d24-f682-482d-9040-d69746625423"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.740.55"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="db66e7f5-48c6-4431-b7ac-ce2a00fc28d3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6157088c-4610-4a56-9b50-1f307af80a20"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6157088c-4610-4a56-9b50-1f307af80a20"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5a5bb221-340a-410a-a57f-5031ac99da36"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="739445767"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0222) 778778860"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tina.filipowski@xn--tpfer-jua.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Moosweg 68c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="68c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Moosweg"/> + </extension> + </line> + <city value="Süd Marek"/> + <postalCode value="48927"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b13ddd90-f03b-4205-a558-8fe0ec60c74d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="755566422"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/input.xml new file mode 100644 index 00000000..28d2e711 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="0d9bb3b8-f143-435d-9518-c4e59201662f"/> + <meta> + <lastUpdated value="2024-02-08T19:05:20.485+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.766.74"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:05:20.485+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/839322d9-d2f7-4549-8644-b5a0d1b1d562"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="839322d9-d2f7-4549-8644-b5a0d1b1d562"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/cdca531a-574b-4c55-bc6e-ec156641b91d"/> + </subject> + <date value="2024-02-08T19:05:20+01:00"/> + <author> + <reference value="Practitioner/7e475265-db07-4448-8665-c8a07ab730b8"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5eab3edb-d017-42c2-952f-2544ecedcd60"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/3eb0db45-5cca-473b-b800-2519f918e92b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/db8141f7-d56e-4b62-83f1-07626c48bfb6"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/cdca531a-574b-4c55-bc6e-ec156641b91d"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="cdca531a-574b-4c55-bc6e-ec156641b91d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1977-05-16"/> + <address> + <type value="both"/> + <line value="Siemensstr. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siemensstr."/> + </extension> + </line> + <city value="Teufelscheid"/> + <postalCode value="95865"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/5eab3edb-d017-42c2-952f-2544ecedcd60"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5eab3edb-d017-42c2-952f-2544ecedcd60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="173654881"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(07189) 9689975"/> + </telecom> + <telecom> + <system value="email"/> + <value value="pius.bethke@morhelfer.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Mozartstr. 252"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="252"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Mozartstr."/> + </extension> + </line> + <city value="Forststadt"/> + <postalCode value="48325"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/3eb0db45-5cca-473b-b800-2519f918e92b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="3eb0db45-5cca-473b-b800-2519f918e92b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/8e3fa63f-f9f6-45c0-aad2-a4e05a8dc425"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="102137985"/> + </identifier> + <display value="TUI BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/7e475265-db07-4448-8665-c8a07ab730b8"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7e475265-db07-4448-8665-c8a07ab730b8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="246042887"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/db8141f7-d56e-4b62-83f1-07626c48bfb6"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="db8141f7-d56e-4b62-83f1-07626c48bfb6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5390eeb6-cf71-4d6d-bf2a-179bdd86773b"/> + </medicationReference> + <subject> + <reference value="Patient/cdca531a-574b-4c55-bc6e-ec156641b91d"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/7e475265-db07-4448-8665-c8a07ab730b8"/> + </requester> + <insurance> + <reference value="Coverage/3eb0db45-5cca-473b-b800-2519f918e92b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/output.json new file mode 100644 index 00000000..cda16f50 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "19a7bde6-0763-4097-84ce-a879257dbc48", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.766.74" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "445b10fe-6d04-4ba8-8a12-2efa592571bb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/55c6a716-fb67-4e66-afff-3360cce8c0ad" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "55c6a716-fb67-4e66-afff-3360cce8c0ad", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2aebb1fb-7191-4e99-88c8-2b815fa6df42", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "173654881" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(07189) 9689975" + }, { + "system": "email", + "value": "pius.bethke@morhelfer.de" + } ], + "address": [ { + "type": "both", + "line": [ "Mozartstr. 252" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "252" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Mozartstr." + } ] + } ], + "city": "Forststadt", + "postalCode": "48325", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b66322c4-cd68-49f6-a314-9e00049936eb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "246042887" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/output.xml new file mode 100644 index 00000000..0bbccdf4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_19a7bde6/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="19a7bde6-0763-4097-84ce-a879257dbc48"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.766.74"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="445b10fe-6d04-4ba8-8a12-2efa592571bb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/55c6a716-fb67-4e66-afff-3360cce8c0ad"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="55c6a716-fb67-4e66-afff-3360cce8c0ad"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2aebb1fb-7191-4e99-88c8-2b815fa6df42"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="173654881"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(07189) 9689975"/> + </telecom> + <telecom> + <system value="email"/> + <value value="pius.bethke@morhelfer.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Mozartstr. 252"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="252"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Mozartstr."/> + </extension> + </line> + <city value="Forststadt"/> + <postalCode value="48325"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b66322c4-cd68-49f6-a314-9e00049936eb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="246042887"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/input.xml new file mode 100644 index 00000000..010e26a4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="fb9ea88e-7dae-4b1a-bea8-8f1124602654"/> + <meta> + <lastUpdated value="2024-02-08T19:04:36.701+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.761.89"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:04:36.701+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/480c35d9-0baf-4fcd-bd03-9354729c9645"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="480c35d9-0baf-4fcd-bd03-9354729c9645"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/35300f8e-37d2-4a9c-a6b2-784fd14be3e9"/> + </subject> + <date value="2024-02-08T19:04:36+01:00"/> + <author> + <reference value="Practitioner/39308a1e-2249-445c-9880-cc5ee1d1d34e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/b8f32f66-44a6-4e6f-92ff-d24b026c470c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/d133ec8c-f96c-4684-90a4-4524631a740a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/b7468f53-a525-47ff-b307-65bf6d2b3559"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/a1e3c5b7-683e-4d11-a6ad-0e8542bac7e2"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a1e3c5b7-683e-4d11-a6ad-0e8542bac7e2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/35300f8e-37d2-4a9c-a6b2-784fd14be3e9"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="35300f8e-37d2-4a9c-a6b2-784fd14be3e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="2003-09-20"/> + <address> + <type value="both"/> + <line value="Wiebertshof 14"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="14"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wiebertshof"/> + </extension> + </line> + <city value="Nord Tamaraheim"/> + <postalCode value="34586"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/b8f32f66-44a6-4e6f-92ff-d24b026c470c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b8f32f66-44a6-4e6f-92ff-d24b026c470c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="710988584"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-882-3423799"/> + </telecom> + <telecom> + <system value="email"/> + <value value="samia.hingst@lohmann.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="In der Dasladen 80"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="80"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="In der Dasladen"/> + </extension> + </line> + <city value="Nord Sarahscheid"/> + <postalCode value="97709"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/d133ec8c-f96c-4684-90a4-4524631a740a"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="d133ec8c-f96c-4684-90a4-4524631a740a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/a320407e-3384-4706-855c-499230a5cb70"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109723913"/> + </identifier> + <display value="BKK Verkehrsbau Union (VBU)"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/39308a1e-2249-445c-9880-cc5ee1d1d34e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="39308a1e-2249-445c-9880-cc5ee1d1d34e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="662556538"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/b7468f53-a525-47ff-b307-65bf6d2b3559"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b7468f53-a525-47ff-b307-65bf6d2b3559"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a1e3c5b7-683e-4d11-a6ad-0e8542bac7e2"/> + </medicationReference> + <subject> + <reference value="Patient/35300f8e-37d2-4a9c-a6b2-784fd14be3e9"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/39308a1e-2249-445c-9880-cc5ee1d1d34e"/> + </requester> + <insurance> + <reference value="Coverage/d133ec8c-f96c-4684-90a4-4524631a740a"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/output.json new file mode 100644 index 00000000..5c065d14 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "1b51052c-0f29-47a1-9c14-6b1f8f640901", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.761.89" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "bc9d4b76-08e7-4242-86df-976b39afe80c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/49f477b0-707b-4257-8aa5-c404e2dfddbb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "49f477b0-707b-4257-8aa5-c404e2dfddbb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e0e5ee9f-a0c1-493d-bcc9-7a88b7fe079b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "710988584" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-882-3423799" + }, { + "system": "email", + "value": "samia.hingst@lohmann.ch" + } ], + "address": [ { + "type": "both", + "line": [ "In der Dasladen 80" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "80" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "In der Dasladen" + } ] + } ], + "city": "Nord Sarahscheid", + "postalCode": "97709", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c492b9e3-9745-4967-a4bd-97afddbd4b52", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "662556538" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/output.xml new file mode 100644 index 00000000..f19dc85a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1b51052c/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1b51052c-0f29-47a1-9c14-6b1f8f640901"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.761.89"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="bc9d4b76-08e7-4242-86df-976b39afe80c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/49f477b0-707b-4257-8aa5-c404e2dfddbb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="49f477b0-707b-4257-8aa5-c404e2dfddbb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e0e5ee9f-a0c1-493d-bcc9-7a88b7fe079b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="710988584"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-882-3423799"/> + </telecom> + <telecom> + <system value="email"/> + <value value="samia.hingst@lohmann.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="In der Dasladen 80"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="80"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="In der Dasladen"/> + </extension> + </line> + <city value="Nord Sarahscheid"/> + <postalCode value="97709"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c492b9e3-9745-4967-a4bd-97afddbd4b52"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="662556538"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/input.xml new file mode 100644 index 00000000..d3438cf5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4149362e-f739-4912-b8cf-84b7c560cfa8"/> + <meta> + <lastUpdated value="2024-02-08T19:05:02.287+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.765.77"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:05:02.287+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/ab3e55e0-a523-4fa2-a0b7-70aed02c4b88"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ab3e55e0-a523-4fa2-a0b7-70aed02c4b88"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/d2a58934-6bcf-4efb-8251-44a6f3066927"/> + </subject> + <date value="2024-02-08T19:05:02+01:00"/> + <author> + <reference value="Practitioner/ba3f86fc-f00a-4335-8615-61c7d18b9dee"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/8e7aa328-ef87-4d90-8f4e-32ebc1fbd4ab"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/cbd29358-bfce-4086-83b4-b345fe7e1aec"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/d8493c0d-9a81-4e7d-a98e-8f693bb8e612"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/8e061f5f-d969-4642-b6fc-1fd835f0e282"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8e061f5f-d969-4642-b6fc-1fd835f0e282"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/d2a58934-6bcf-4efb-8251-44a6f3066927"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="d2a58934-6bcf-4efb-8251-44a6f3066927"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1972-12-05"/> + <address> + <type value="both"/> + <line value="Schwalbenweg 88a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="88a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schwalbenweg"/> + </extension> + </line> + <city value="Ost Friedrich"/> + <postalCode value="42778"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/8e7aa328-ef87-4d90-8f4e-32ebc1fbd4ab"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8e7aa328-ef87-4d90-8f4e-32ebc1fbd4ab"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="600372833"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0682) 787150898"/> + </telecom> + <telecom> + <system value="email"/> + <value value="alessio.ehrig@behnke.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Gesundheitspark 31c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="31c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Gesundheitspark"/> + </extension> + </line> + <city value="Groß Annagrün"/> + <postalCode value="34652"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/cbd29358-bfce-4086-83b4-b345fe7e1aec"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="cbd29358-bfce-4086-83b4-b345fe7e1aec"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="48"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/8a3f8bea-7edc-4069-bc7f-c44d57c5adac"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101570104"/> + </identifier> + <display value="Hanseatische Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/ba3f86fc-f00a-4335-8615-61c7d18b9dee"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ba3f86fc-f00a-4335-8615-61c7d18b9dee"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="386029325"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/d8493c0d-9a81-4e7d-a98e-8f693bb8e612"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d8493c0d-9a81-4e7d-a98e-8f693bb8e612"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8e061f5f-d969-4642-b6fc-1fd835f0e282"/> + </medicationReference> + <subject> + <reference value="Patient/d2a58934-6bcf-4efb-8251-44a6f3066927"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/ba3f86fc-f00a-4335-8615-61c7d18b9dee"/> + </requester> + <insurance> + <reference value="Coverage/cbd29358-bfce-4086-83b4-b345fe7e1aec"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/output.json new file mode 100644 index 00000000..e7be41b6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "1c646da7-8b84-42d2-9e37-2fb2cbac57dd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.765.77" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "114aa22f-fe85-4206-85f5-9cdb09d618d9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/dfcfda34-ab6c-42ae-8061-5302903210a6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "dfcfda34-ab6c-42ae-8061-5302903210a6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d4572afc-f68e-41eb-bb85-1fbe7aa06b85", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "600372833" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0682) 787150898" + }, { + "system": "email", + "value": "alessio.ehrig@behnke.info" + } ], + "address": [ { + "type": "both", + "line": [ "Am Gesundheitspark 31c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "31c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Am Gesundheitspark" + } ] + } ], + "city": "Groß Annagrün", + "postalCode": "34652", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "8327cf51-9921-4298-af32-165d7a51d06f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "386029325" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/output.xml new file mode 100644 index 00000000..f238d48b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1c646da7/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1c646da7-8b84-42d2-9e37-2fb2cbac57dd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.765.77"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="114aa22f-fe85-4206-85f5-9cdb09d618d9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/dfcfda34-ab6c-42ae-8061-5302903210a6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="dfcfda34-ab6c-42ae-8061-5302903210a6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d4572afc-f68e-41eb-bb85-1fbe7aa06b85"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="600372833"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0682) 787150898"/> + </telecom> + <telecom> + <system value="email"/> + <value value="alessio.ehrig@behnke.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Gesundheitspark 31c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="31c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Gesundheitspark"/> + </extension> + </line> + <city value="Groß Annagrün"/> + <postalCode value="34652"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8327cf51-9921-4298-af32-165d7a51d06f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="386029325"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/input.xml new file mode 100644 index 00000000..472a5571 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="37c652cb-7289-4335-abf0-3c5e6a0c810a"/> + <meta> + <lastUpdated value="2024-02-08T19:07:19.035+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.777.41"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:07:19.035+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/8b8723dc-cfe9-40d5-b725-f12f78808bcd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8b8723dc-cfe9-40d5-b725-f12f78808bcd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/36b168a7-617e-4260-b021-a0c9b3f8ff9a"/> + </subject> + <date value="2024-02-08T19:07:19+01:00"/> + <author> + <reference value="Practitioner/1448974f-2444-444e-aee7-72be480f0729"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/6a90c2e0-038f-49c6-b4ae-dcdaad5b3c36"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/556b0843-bf3c-4f36-86f6-bd2b53cb4676"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/fa002435-4e02-4fa2-8895-d1bba2efbb2a"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/59004187-ab21-4702-9966-5d1b9a32b5ac"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="59004187-ab21-4702-9966-5d1b9a32b5ac"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11648419"/> + </coding> + <text value="IBUFLAM akut"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/36b168a7-617e-4260-b021-a0c9b3f8ff9a"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="36b168a7-617e-4260-b021-a0c9b3f8ff9a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="2004-02-19"/> + <address> + <type value="both"/> + <line value="Lucasstr. 90b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="90b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lucasstr."/> + </extension> + </line> + <city value="Ahmaddorf"/> + <postalCode value="94082"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/6a90c2e0-038f-49c6-b4ae-dcdaad5b3c36"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6a90c2e0-038f-49c6-b4ae-dcdaad5b3c36"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="505323366"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0283) 686271780"/> + </telecom> + <telecom> + <system value="email"/> + <value value="alexa.newton@salzmann.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Potsdamer Str. 01c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Potsdamer Str."/> + </extension> + </line> + <city value="Alt Elianastadt"/> + <postalCode value="41650"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/556b0843-bf3c-4f36-86f6-bd2b53cb4676"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="556b0843-bf3c-4f36-86f6-bd2b53cb4676"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/4adac281-9915-4c72-96e4-e80f37662ab0"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="100602360"/> + </identifier> + <display value="IKK Brandenburg und Berlin"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/1448974f-2444-444e-aee7-72be480f0729"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1448974f-2444-444e-aee7-72be480f0729"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="826335247"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/fa002435-4e02-4fa2-8895-d1bba2efbb2a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fa002435-4e02-4fa2-8895-d1bba2efbb2a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/59004187-ab21-4702-9966-5d1b9a32b5ac"/> + </medicationReference> + <subject> + <reference value="Patient/36b168a7-617e-4260-b021-a0c9b3f8ff9a"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/1448974f-2444-444e-aee7-72be480f0729"/> + </requester> + <insurance> + <reference value="Coverage/556b0843-bf3c-4f36-86f6-bd2b53cb4676"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="50"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/output.json new file mode 100644 index 00000000..2930b26e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "1ed8eaa8-f5e8-4397-a9c6-32742f3e3669", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.777.41" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0452c1c8-4a08-4210-97ec-42f314f950b9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/41344481-db84-4db6-9ee5-cee8846a0ec1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 50, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "41344481-db84-4db6-9ee5-cee8846a0ec1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "11648419" + } ], + "text": "IBUFLAM akut" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "bab078f8-e743-4b75-aa62-471b008f969a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "505323366" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0283) 686271780" + }, { + "system": "email", + "value": "alexa.newton@salzmann.ch" + } ], + "address": [ { + "type": "both", + "line": [ "Potsdamer Str. 01c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "01c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Potsdamer Str." + } ] + } ], + "city": "Alt Elianastadt", + "postalCode": "41650", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "11c606e1-3640-4394-a85a-bfe8c18efe4c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "826335247" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/output.xml new file mode 100644 index 00000000..f50e2b33 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_1ed8eaa8/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1ed8eaa8-f5e8-4397-a9c6-32742f3e3669"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.777.41"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0452c1c8-4a08-4210-97ec-42f314f950b9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/41344481-db84-4db6-9ee5-cee8846a0ec1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="50"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="41344481-db84-4db6-9ee5-cee8846a0ec1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11648419"/> + </coding> + <text value="IBUFLAM akut"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="bab078f8-e743-4b75-aa62-471b008f969a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="505323366"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0283) 686271780"/> + </telecom> + <telecom> + <system value="email"/> + <value value="alexa.newton@salzmann.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Potsdamer Str. 01c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Potsdamer Str."/> + </extension> + </line> + <city value="Alt Elianastadt"/> + <postalCode value="41650"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="11c606e1-3640-4394-a85a-bfe8c18efe4c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="826335247"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/input.xml new file mode 100644 index 00000000..547376e4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4ff8a848-53cb-42dc-a7ac-3f90bacd2e1d"/> + <meta> + <lastUpdated value="2024-02-08T19:21:25.693+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.996.31"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:21:25.693+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/3e75dbf0-505e-426a-b0d1-7c48b8838dc8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="3e75dbf0-505e-426a-b0d1-7c48b8838dc8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/11c7df44-c880-464e-bec1-a0169d8a2d23"/> + </subject> + <date value="2024-02-08T19:21:25+01:00"/> + <author> + <reference value="Practitioner/fe11c397-5ee6-475a-b27a-497fb946b1f2"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2533ab91-11e3-4272-84a5-36077b8b1d6f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/915cf042-7168-437d-9c10-d87aa67d2516"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/22c85c7b-ef57-48d0-8c16-05e705b37719"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/979f9f1b-d9d5-4784-9c1e-0b1abe22d2ea"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="979f9f1b-d9d5-4784-9c1e-0b1abe22d2ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="48094708"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/11c7df44-c880-464e-bec1-a0169d8a2d23"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="11c7df44-c880-464e-bec1-a0169d8a2d23"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1975-01-22"/> + <address> + <type value="both"/> + <line value="Wüstenhof 7"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="7"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wüstenhof"/> + </extension> + </line> + <city value="Neu Youssefhagen"/> + <postalCode value="80809"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/2533ab91-11e3-4272-84a5-36077b8b1d6f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2533ab91-11e3-4272-84a5-36077b8b1d6f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="889081004"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8265-38308644"/> + </telecom> + <telecom> + <system value="email"/> + <value value="karlo.benner@wilts.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Kalkstr. 7"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="7"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kalkstr."/> + </extension> + </line> + <city value="Rohländerstadt"/> + <postalCode value="98861"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/915cf042-7168-437d-9c10-d87aa67d2516"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="915cf042-7168-437d-9c10-d87aa67d2516"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/f65b8aec-c039-4f18-ad69-1636ae6dffcd"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141461"/> + </identifier> + <display value="ottonova Krankenversicherung AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/fe11c397-5ee6-475a-b27a-497fb946b1f2"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="fe11c397-5ee6-475a-b27a-497fb946b1f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="892116208"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/22c85c7b-ef57-48d0-8c16-05e705b37719"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="22c85c7b-ef57-48d0-8c16-05e705b37719"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/979f9f1b-d9d5-4784-9c1e-0b1abe22d2ea"/> + </medicationReference> + <subject> + <reference value="Patient/11c7df44-c880-464e-bec1-a0169d8a2d23"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/fe11c397-5ee6-475a-b27a-497fb946b1f2"/> + </requester> + <insurance> + <reference value="Coverage/915cf042-7168-437d-9c10-d87aa67d2516"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/output.json new file mode 100644 index 00000000..cc87caef --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "265b0953-2cda-4106-92a6-46582f6ca701", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.996.31" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "14c3d243-30ce-4918-b4a6-c0f2f2100063", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b36cf820-3c18-4abe-a049-4f52c19d3f26" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b36cf820-3c18-4abe-a049-4f52c19d3f26", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "48094708" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f37fbc52-ebf8-423e-884b-c86600cfebec", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "889081004" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-8265-38308644" + }, { + "system": "email", + "value": "karlo.benner@wilts.net" + } ], + "address": [ { + "type": "both", + "line": [ "Kalkstr. 7" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "7" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Kalkstr." + } ] + } ], + "city": "Rohländerstadt", + "postalCode": "98861", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "eeca44d5-48ea-4b63-8f0c-9ba69b874e9d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "892116208" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/output.xml new file mode 100644 index 00000000..ccb33514 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_265b0953/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="265b0953-2cda-4106-92a6-46582f6ca701"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.996.31"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="14c3d243-30ce-4918-b4a6-c0f2f2100063"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b36cf820-3c18-4abe-a049-4f52c19d3f26"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b36cf820-3c18-4abe-a049-4f52c19d3f26"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="48094708"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f37fbc52-ebf8-423e-884b-c86600cfebec"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="889081004"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8265-38308644"/> + </telecom> + <telecom> + <system value="email"/> + <value value="karlo.benner@wilts.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Kalkstr. 7"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="7"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kalkstr."/> + </extension> + </line> + <city value="Rohländerstadt"/> + <postalCode value="98861"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="eeca44d5-48ea-4b63-8f0c-9ba69b874e9d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="892116208"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/input.xml new file mode 100644 index 00000000..ba541286 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4c861d6d-69cc-4f3f-9ef2-d294f63dc408"/> + <meta> + <lastUpdated value="2024-02-08T19:13:06.426+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.807.48"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:13:06.426+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/a1a35ee0-1972-45d1-a1c2-439e359d4a01"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a1a35ee0-1972-45d1-a1c2-439e359d4a01"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/7f489f10-5bc7-47da-a60a-d5230ba517a4"/> + </subject> + <date value="2024-02-08T19:13:06+01:00"/> + <author> + <reference value="Practitioner/de76c437-4555-45a6-b4ad-ec1e1fadde41"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/369088ec-c775-4b28-a028-8ec3fafce3d1"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/2d6b1d33-9c02-46fc-9379-9638ae84d3af"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/15ba04da-90df-41c9-9225-38de3a68d36c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/05e937fd-3b04-4422-acb5-ec31f39109c9"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="05e937fd-3b04-4422-acb5-ec31f39109c9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/7f489f10-5bc7-47da-a60a-d5230ba517a4"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="7f489f10-5bc7-47da-a60a-d5230ba517a4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1978-04-23"/> + <address> + <type value="both"/> + <line value="Ulrichstr. 29b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ulrichstr."/> + </extension> + </line> + <city value="Rikefeld"/> + <postalCode value="82333"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/369088ec-c775-4b28-a028-8ec3fafce3d1"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="369088ec-c775-4b28-a028-8ec3fafce3d1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="623514458"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-832-4027347"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hamza.hübl@adam.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Insterstr. 93c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="93c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Insterstr."/> + </extension> + </line> + <city value="Koubaastadt"/> + <postalCode value="64092"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/2d6b1d33-9c02-46fc-9379-9638ae84d3af"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="2d6b1d33-9c02-46fc-9379-9638ae84d3af"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="88"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/b76541f3-2440-4d42-a0c3-d279d63bb9f7"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104926702"/> + </identifier> + <display value="DIE BERGISCHE KRANKENKASSE"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/de76c437-4555-45a6-b4ad-ec1e1fadde41"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="de76c437-4555-45a6-b4ad-ec1e1fadde41"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="806233722"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/15ba04da-90df-41c9-9225-38de3a68d36c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="15ba04da-90df-41c9-9225-38de3a68d36c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/05e937fd-3b04-4422-acb5-ec31f39109c9"/> + </medicationReference> + <subject> + <reference value="Patient/7f489f10-5bc7-47da-a60a-d5230ba517a4"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/de76c437-4555-45a6-b4ad-ec1e1fadde41"/> + </requester> + <insurance> + <reference value="Coverage/2d6b1d33-9c02-46fc-9379-9638ae84d3af"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/output.json new file mode 100644 index 00000000..fc564a78 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "2a985325-2ef2-4119-8902-f6c859b5fa57", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.807.48" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "49f1c762-60f8-4cad-9368-b7c0f4d15d3d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/e14b6a00-99ac-405f-a452-9e6ddee9fb90" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e14b6a00-99ac-405f-a452-9e6ddee9fb90", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a5a7159e-31e6-46c8-9a05-a73b503f5819", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "623514458" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-832-4027347" + }, { + "system": "email", + "value": "hamza.hübl@adam.org" + } ], + "address": [ { + "type": "both", + "line": [ "Insterstr. 93c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "93c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Insterstr." + } ] + } ], + "city": "Koubaastadt", + "postalCode": "64092", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "41754ac0-e399-472b-8a6a-516933e52b8a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "806233722" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/output.xml new file mode 100644 index 00000000..0e55c71c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2a985325/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2a985325-2ef2-4119-8902-f6c859b5fa57"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.807.48"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="49f1c762-60f8-4cad-9368-b7c0f4d15d3d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e14b6a00-99ac-405f-a452-9e6ddee9fb90"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e14b6a00-99ac-405f-a452-9e6ddee9fb90"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a5a7159e-31e6-46c8-9a05-a73b503f5819"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="623514458"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-832-4027347"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hamza.hübl@adam.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Insterstr. 93c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="93c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Insterstr."/> + </extension> + </line> + <city value="Koubaastadt"/> + <postalCode value="64092"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="41754ac0-e399-472b-8a6a-516933e52b8a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="806233722"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/input.xml new file mode 100644 index 00000000..62fba05f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="902668fe-ee41-4ba4-ba52-6e212947e007"/> + <meta> + <lastUpdated value="2024-02-08T19:02:16.965+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.747.34"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:02:16.965+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/e2c78304-f042-4e65-82dd-d32fa8f97777"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="e2c78304-f042-4e65-82dd-d32fa8f97777"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/22efc377-d100-4cff-a54b-87182545b0e9"/> + </subject> + <date value="2024-02-08T19:02:16+01:00"/> + <author> + <reference value="Practitioner/b4be1332-2490-4471-bed6-b13c724c471c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/fe9a7c33-90aa-49c6-9d5d-8559a988b567"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/6cb1ce16-344c-46fe-8836-2360f8e6eb1d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/6558f071-27e0-4216-803b-ae0ce5774f7c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/6a0b2e58-4efb-4a96-808b-943c4b0b1aa7"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6a0b2e58-4efb-4a96-808b-943c4b0b1aa7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/22efc377-d100-4cff-a54b-87182545b0e9"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="22efc377-d100-4cff-a54b-87182545b0e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1997-06-17"/> + <address> + <type value="both"/> + <line value="Meckhofer Feld 27c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Meckhofer Feld"/> + </extension> + </line> + <city value="Knuthagen"/> + <postalCode value="94518"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/fe9a7c33-90aa-49c6-9d5d-8559a988b567"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="fe9a7c33-90aa-49c6-9d5d-8559a988b567"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="011361824"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-9570-93669717"/> + </telecom> + <telecom> + <system value="email"/> + <value value="amir.einert@abraham.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Weizkamp 5"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="5"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weizkamp"/> + </extension> + </line> + <city value="Henkelheim"/> + <postalCode value="71075"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/6cb1ce16-344c-46fe-8836-2360f8e6eb1d"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="6cb1ce16-344c-46fe-8836-2360f8e6eb1d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="83"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/2bdccfe2-f1ec-4cf9-99a0-7bae778b66b8"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104926702"/> + </identifier> + <display value="DIE BERGISCHE KRANKENKASSE"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/b4be1332-2490-4471-bed6-b13c724c471c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b4be1332-2490-4471-bed6-b13c724c471c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="884700727"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/6558f071-27e0-4216-803b-ae0ce5774f7c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6558f071-27e0-4216-803b-ae0ce5774f7c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6a0b2e58-4efb-4a96-808b-943c4b0b1aa7"/> + </medicationReference> + <subject> + <reference value="Patient/22efc377-d100-4cff-a54b-87182545b0e9"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/b4be1332-2490-4471-bed6-b13c724c471c"/> + </requester> + <insurance> + <reference value="Coverage/6cb1ce16-344c-46fe-8836-2360f8e6eb1d"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/output.json new file mode 100644 index 00000000..8a365c2e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "2aa2072e-337b-4af7-8ecb-9a5708b03f14", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.747.34" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "029e0df2-6103-4ef7-812b-23ad2e28956a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/5e8c38ba-8101-49c1-8458-06f8e8fc34cf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5e8c38ba-8101-49c1-8458-06f8e8fc34cf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b3e4f46c-dacc-436e-9b0d-d1e6b8c9ccb3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "011361824" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-9570-93669717" + }, { + "system": "email", + "value": "amir.einert@abraham.org" + } ], + "address": [ { + "type": "both", + "line": [ "Weizkamp 5" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "5" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Weizkamp" + } ] + } ], + "city": "Henkelheim", + "postalCode": "71075", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d8c1b101-073c-49f4-95e8-065df90f3138", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "884700727" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/output.xml new file mode 100644 index 00000000..b824051c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2aa2072e/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2aa2072e-337b-4af7-8ecb-9a5708b03f14"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.747.34"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="029e0df2-6103-4ef7-812b-23ad2e28956a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5e8c38ba-8101-49c1-8458-06f8e8fc34cf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5e8c38ba-8101-49c1-8458-06f8e8fc34cf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b3e4f46c-dacc-436e-9b0d-d1e6b8c9ccb3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="011361824"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-9570-93669717"/> + </telecom> + <telecom> + <system value="email"/> + <value value="amir.einert@abraham.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Weizkamp 5"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="5"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weizkamp"/> + </extension> + </line> + <city value="Henkelheim"/> + <postalCode value="71075"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d8c1b101-073c-49f4-95e8-065df90f3138"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="884700727"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/input.xml new file mode 100644 index 00000000..cf0b4421 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="2b62d10b-9e89-4862-aac0-f86289215236"/> + <meta> + <lastUpdated value="2024-02-08T19:20:55.669+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.993.40"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:20:55.669+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/08452da3-5e0e-4f79-8f26-18e9ab419359"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="08452da3-5e0e-4f79-8f26-18e9ab419359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/7a889c59-dee1-4614-9008-9d18a903b707"/> + </subject> + <date value="2024-02-08T19:20:55+01:00"/> + <author> + <reference value="Practitioner/df062986-77e8-4830-80f4-6d4f78c19eed"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/ce35e6b5-17eb-4aee-81a5-a8b00020ef60"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/ed60ea09-ba96-46e9-a288-05bd87e594e7"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/fc6a383b-d7d6-4262-9468-41b40b969f19"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/44e01efe-2e01-4a3c-9245-08e4046e73e1"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="44e01efe-2e01-4a3c-9245-08e4046e73e1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="86732221"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/7a889c59-dee1-4614-9008-9d18a903b707"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="7a889c59-dee1-4614-9008-9d18a903b707"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1973-07-29"/> + <address> + <type value="both"/> + <line value="Kuhlmannweg 502"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="502"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kuhlmannweg"/> + </extension> + </line> + <city value="Gamperscheid"/> + <postalCode value="07607"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/ce35e6b5-17eb-4aee-81a5-a8b00020ef60"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ce35e6b5-17eb-4aee-81a5-a8b00020ef60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="482117907"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-535-4011988"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tristan.linden@bruder.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Berliner Str. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Str."/> + </extension> + </line> + <city value="Stollestadt"/> + <postalCode value="66216"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/ed60ea09-ba96-46e9-a288-05bd87e594e7"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="ed60ea09-ba96-46e9-a288-05bd87e594e7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="52"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/a9b0eddf-4d26-47c8-9373-85f967a82527"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140028"/> + </identifier> + <display value="SIGNAL IDUNA Krankenversicherung a.G."/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/df062986-77e8-4830-80f4-6d4f78c19eed"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="df062986-77e8-4830-80f4-6d4f78c19eed"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="218194094"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/fc6a383b-d7d6-4262-9468-41b40b969f19"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fc6a383b-d7d6-4262-9468-41b40b969f19"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/44e01efe-2e01-4a3c-9245-08e4046e73e1"/> + </medicationReference> + <subject> + <reference value="Patient/7a889c59-dee1-4614-9008-9d18a903b707"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/df062986-77e8-4830-80f4-6d4f78c19eed"/> + </requester> + <insurance> + <reference value="Coverage/ed60ea09-ba96-46e9-a288-05bd87e594e7"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/output.json new file mode 100644 index 00000000..152d0550 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "2cbc202c-0dd5-4fa2-95a6-255a66df816f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.993.40" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "74bb8c64-2362-4a0d-92bf-7b802372d741", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3a75730a-0fbe-47cf-a033-ddbaa73a3c8d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3a75730a-0fbe-47cf-a033-ddbaa73a3c8d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "86732221" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e194e9da-73b7-4e77-81d9-2c4a726203e3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "482117907" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-535-4011988" + }, { + "system": "email", + "value": "tristan.linden@bruder.name" + } ], + "address": [ { + "type": "both", + "line": [ "Berliner Str. 9" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "9" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Berliner Str." + } ] + } ], + "city": "Stollestadt", + "postalCode": "66216", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4aeaf204-ab2c-4eae-a294-e5ee46e9dc30", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "218194094" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/output.xml new file mode 100644 index 00000000..f74a2821 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2cbc202c/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2cbc202c-0dd5-4fa2-95a6-255a66df816f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.993.40"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="74bb8c64-2362-4a0d-92bf-7b802372d741"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3a75730a-0fbe-47cf-a033-ddbaa73a3c8d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3a75730a-0fbe-47cf-a033-ddbaa73a3c8d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="86732221"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e194e9da-73b7-4e77-81d9-2c4a726203e3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="482117907"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-535-4011988"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tristan.linden@bruder.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Berliner Str. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Str."/> + </extension> + </line> + <city value="Stollestadt"/> + <postalCode value="66216"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4aeaf204-ab2c-4eae-a294-e5ee46e9dc30"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="218194094"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/input.xml new file mode 100644 index 00000000..c965d3a8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="f88786be-0e84-4dae-95c5-253566e419ec"/> + <meta> + <lastUpdated value="2024-02-08T19:06:47.263+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.772.56"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:06:47.263+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/ddc9d4f3-762f-4e34-a46a-f876a3de8dff"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ddc9d4f3-762f-4e34-a46a-f876a3de8dff"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/35459836-f16f-4e92-b4b5-af95fb83cc84"/> + </subject> + <date value="2024-02-08T19:06:47+01:00"/> + <author> + <reference value="Practitioner/9ebca3b6-31b1-4615-9f1a-962c8df31a6a"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/166f57eb-9898-4c8a-b619-eed96517a0be"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/5e0c0389-f2d5-4bba-be7f-971f912543cf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/ed04b07c-30e3-44a8-a5d2-b90e89dd2288"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/9d39ec41-1121-40f3-ba0c-a179f46b718a"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9d39ec41-1121-40f3-ba0c-a179f46b718a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="37914278"/> + </coding> + <text value="Ilopterproston"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/35459836-f16f-4e92-b4b5-af95fb83cc84"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="35459836-f16f-4e92-b4b5-af95fb83cc84"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1986-07-21"/> + <address> + <type value="both"/> + <line value="Kleingansweg 62b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="62b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kleingansweg"/> + </extension> + </line> + <city value="Groß Julian"/> + <postalCode value="36222"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/166f57eb-9898-4c8a-b619-eed96517a0be"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="166f57eb-9898-4c8a-b619-eed96517a0be"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="032584845"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(05736) 6284866"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lene.soller@schuhaj.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Pestalozzistr. 49c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="49c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pestalozzistr."/> + </extension> + </line> + <city value="Joannastadt"/> + <postalCode value="59066"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/5e0c0389-f2d5-4bba-be7f-971f912543cf"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="5e0c0389-f2d5-4bba-be7f-971f912543cf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/26f31e20-8a1a-4728-bb71-f483c71021b8"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104224634"/> + </identifier> + <display value="BKK Deutsche Bank AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/9ebca3b6-31b1-4615-9f1a-962c8df31a6a"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9ebca3b6-31b1-4615-9f1a-962c8df31a6a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="180405337"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/ed04b07c-30e3-44a8-a5d2-b90e89dd2288"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ed04b07c-30e3-44a8-a5d2-b90e89dd2288"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9d39ec41-1121-40f3-ba0c-a179f46b718a"/> + </medicationReference> + <subject> + <reference value="Patient/35459836-f16f-4e92-b4b5-af95fb83cc84"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/9ebca3b6-31b1-4615-9f1a-962c8df31a6a"/> + </requester> + <insurance> + <reference value="Coverage/5e0c0389-f2d5-4bba-be7f-971f912543cf"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/output.json new file mode 100644 index 00000000..208510ed --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "2d9e5916-0fc8-49f5-866b-79ea6348ec52", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.772.56" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "22268ace-3d00-4d83-82ce-324d09e621a3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4042c8a5-2719-4c14-a9d5-d295da64d02a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4042c8a5-2719-4c14-a9d5-d295da64d02a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "37914278" + } ], + "text": "Ilopterproston" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6d6661da-1633-4486-ae63-f3f13516f62e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "032584845" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(05736) 6284866" + }, { + "system": "email", + "value": "lene.soller@schuhaj.org" + } ], + "address": [ { + "type": "both", + "line": [ "Pestalozzistr. 49c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "49c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Pestalozzistr." + } ] + } ], + "city": "Joannastadt", + "postalCode": "59066", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "1235c6da-88c1-43b3-9816-7d88b93f7564", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "180405337" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/output.xml new file mode 100644 index 00000000..b9ad80d9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2d9e5916/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2d9e5916-0fc8-49f5-866b-79ea6348ec52"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.772.56"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="22268ace-3d00-4d83-82ce-324d09e621a3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4042c8a5-2719-4c14-a9d5-d295da64d02a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4042c8a5-2719-4c14-a9d5-d295da64d02a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="37914278"/> + </coding> + <text value="Ilopterproston"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6d6661da-1633-4486-ae63-f3f13516f62e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="032584845"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(05736) 6284866"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lene.soller@schuhaj.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Pestalozzistr. 49c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="49c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pestalozzistr."/> + </extension> + </line> + <city value="Joannastadt"/> + <postalCode value="59066"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1235c6da-88c1-43b3-9816-7d88b93f7564"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="180405337"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/input.xml new file mode 100644 index 00000000..ebac57ff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/input.xml @@ -0,0 +1,403 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4f51deff-9ab0-4535-88ad-ad3558cdb029"/> + <meta> + <lastUpdated value="2024-02-08T19:08:46.196+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.524.76"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:08:46.196+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/8248823c-4d32-4acb-8093-1a0dca2e4958"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8248823c-4d32-4acb-8093-1a0dca2e4958"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/548a50d9-ccba-49c8-bb93-f01e7e382180"/> + </subject> + <date value="2024-02-08T19:08:46+01:00"/> + <author> + <reference value="Practitioner/c012b5ce-943d-4ffd-ba46-aad411a3318b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/be5472bd-bb65-49a5-9d29-0d9bc4668232"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/bf7efc39-ede1-4b41-ada7-1ace947958f6"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/ddbccc8c-9b70-49eb-a3c7-9f7cb6fda02b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/ddc36347-ec0e-4c74-9320-af6410313905"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ddc36347-ec0e-4c74-9320-af6410313905"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="61892969"/> + </coding> + <text value="Hepabraproston"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/548a50d9-ccba-49c8-bb93-f01e7e382180"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="548a50d9-ccba-49c8-bb93-f01e7e382180"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1993-03-09"/> + <address> + <type value="both"/> + <line value="Peschstr. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Peschstr."/> + </extension> + </line> + <city value="Klein Josiebrunn"/> + <postalCode value="35925"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/be5472bd-bb65-49a5-9d29-0d9bc4668232"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="be5472bd-bb65-49a5-9d29-0d9bc4668232"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="558753276"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-6491-96705367"/> + </telecom> + <telecom> + <system value="email"/> + <value value="flora.lauckner@orthmann.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Böcklerstr. 43b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="43b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Böcklerstr."/> + </extension> + </line> + <city value="Groß Finnjadorf"/> + <postalCode value="78873"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/bf7efc39-ede1-4b41-ada7-1ace947958f6"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="bf7efc39-ede1-4b41-ada7-1ace947958f6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="71"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/e81257c3-6322-4862-a2f2-d05598f0dbdf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="950585030"/> + </identifier> + <display value="PBeaKK Postbeamtenkrankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/c012b5ce-943d-4ffd-ba46-aad411a3318b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c012b5ce-943d-4ffd-ba46-aad411a3318b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="642521068"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/ddbccc8c-9b70-49eb-a3c7-9f7cb6fda02b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ddbccc8c-9b70-49eb-a3c7-9f7cb6fda02b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-04"/> + <end value="2025-02-02"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:7bb30620-cb76-4f3a-a459-5ad4c4b63b14"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ddc36347-ec0e-4c74-9320-af6410313905"/> + </medicationReference> + <subject> + <reference value="Patient/548a50d9-ccba-49c8-bb93-f01e7e382180"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/c012b5ce-943d-4ffd-ba46-aad411a3318b"/> + </requester> + <insurance> + <reference value="Coverage/bf7efc39-ede1-4b41-ada7-1ace947958f6"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/output.json new file mode 100644 index 00000000..7da0537a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/output.json @@ -0,0 +1,234 @@ +{ + "resourceType": "Parameters", + "id": "2e209d67-d097-4b87-8fa4-222922d917ec", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.524.76" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d0ed1878-58c4-4fa7-b4d2-ea7228862155", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-04", + "end": "2025-02-02" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:7bb30620-cb76-4f3a-a459-5ad4c4b63b14" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b269138f-27ba-4606-acce-e55fdca0869b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b269138f-27ba-4606-acce-e55fdca0869b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "61892969" + } ], + "text": "Hepabraproston" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3672a543-ac0c-45a2-95a9-c0acc07d5e64", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "558753276" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-6491-96705367" + }, { + "system": "email", + "value": "flora.lauckner@orthmann.name" + } ], + "address": [ { + "type": "both", + "line": [ "Böcklerstr. 43b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "43b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Böcklerstr." + } ] + } ], + "city": "Groß Finnjadorf", + "postalCode": "78873", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "97b978a1-eb8e-4f81-bfd7-3485711aba15", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "642521068" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/output.xml new file mode 100644 index 00000000..7aaf35ce --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_2e209d67/output.xml @@ -0,0 +1,237 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2e209d67-d097-4b87-8fa4-222922d917ec"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.524.76"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d0ed1878-58c4-4fa7-b4d2-ea7228862155"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-04"/> + <end value="2025-02-02"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:7bb30620-cb76-4f3a-a459-5ad4c4b63b14"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b269138f-27ba-4606-acce-e55fdca0869b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b269138f-27ba-4606-acce-e55fdca0869b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="61892969"/> + </coding> + <text value="Hepabraproston"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3672a543-ac0c-45a2-95a9-c0acc07d5e64"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="558753276"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-6491-96705367"/> + </telecom> + <telecom> + <system value="email"/> + <value value="flora.lauckner@orthmann.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Böcklerstr. 43b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="43b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Böcklerstr."/> + </extension> + </line> + <city value="Groß Finnjadorf"/> + <postalCode value="78873"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="97b978a1-eb8e-4f81-bfd7-3485711aba15"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="642521068"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/input.xml new file mode 100644 index 00000000..ad9a3250 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="a3c77b03-d043-4163-acb2-750ce46faac9"/> + <meta> + <lastUpdated value="2024-02-08T19:03:03.515+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.752.19"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:03.515+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/32f11423-62fd-4584-a3ec-ecb1d8b3afc7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="32f11423-62fd-4584-a3ec-ecb1d8b3afc7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/a1fa83d4-aea7-4f5f-8199-28fd5548336b"/> + </subject> + <date value="2024-02-08T19:03:03+01:00"/> + <author> + <reference value="Practitioner/878fe6f2-7fc3-429f-9a58-1064c660ce59"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4bdf4b4f-11b6-46ea-8b6a-aefcd546bf4b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b8eb37c9-cb63-46b2-9d2e-ae09496fee23"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/a9146dcc-975d-434d-8d5e-d88e1f8fd5d2"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/80dcfd04-c4d9-4c31-bc4a-08253d86f10f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="80dcfd04-c4d9-4c31-bc4a-08253d86f10f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/a1fa83d4-aea7-4f5f-8199-28fd5548336b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="a1fa83d4-aea7-4f5f-8199-28fd5548336b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1983-07-24"/> + <address> + <type value="both"/> + <line value="Am Mönchshof 4"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="4"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Mönchshof"/> + </extension> + </line> + <city value="Klein Henrickscheid"/> + <postalCode value="13559"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/4bdf4b4f-11b6-46ea-8b6a-aefcd546bf4b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4bdf4b4f-11b6-46ea-8b6a-aefcd546bf4b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="712972127"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(07022) 9438121"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jeremy.benninger@riekmann.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Cranachstr. 392"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="392"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Cranachstr."/> + </extension> + </line> + <city value="Bussestadt"/> + <postalCode value="00355"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b8eb37c9-cb63-46b2-9d2e-ae09496fee23"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b8eb37c9-cb63-46b2-9d2e-ae09496fee23"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="93"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/081ac686-e33b-448a-9a84-103f26d15b0c"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="106492393"/> + </identifier> + <display value="pronova BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/878fe6f2-7fc3-429f-9a58-1064c660ce59"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="878fe6f2-7fc3-429f-9a58-1064c660ce59"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="379988496"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/a9146dcc-975d-434d-8d5e-d88e1f8fd5d2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a9146dcc-975d-434d-8d5e-d88e1f8fd5d2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/80dcfd04-c4d9-4c31-bc4a-08253d86f10f"/> + </medicationReference> + <subject> + <reference value="Patient/a1fa83d4-aea7-4f5f-8199-28fd5548336b"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/878fe6f2-7fc3-429f-9a58-1064c660ce59"/> + </requester> + <insurance> + <reference value="Coverage/b8eb37c9-cb63-46b2-9d2e-ae09496fee23"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/output.json new file mode 100644 index 00000000..862ef4e6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "3bc18bf8-6167-4d38-bcf6-e961053e706a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.752.19" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "141e436b-0c7e-4212-a353-4cd7d06c3a1d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/533167f2-3f23-497c-8d62-0b45a5f3f9f1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "533167f2-3f23-497c-8d62-0b45a5f3f9f1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b7a6afe8-134b-47fd-9b04-575e222d8c99", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "712972127" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(07022) 9438121" + }, { + "system": "email", + "value": "jeremy.benninger@riekmann.ch" + } ], + "address": [ { + "type": "both", + "line": [ "Cranachstr. 392" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "392" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Cranachstr." + } ] + } ], + "city": "Bussestadt", + "postalCode": "00355", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "151e84b8-9ac1-4ee4-9a11-96a4173ca4f5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "379988496" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/output.xml new file mode 100644 index 00000000..ab1e27de --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3bc18bf8/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="3bc18bf8-6167-4d38-bcf6-e961053e706a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.752.19"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="141e436b-0c7e-4212-a353-4cd7d06c3a1d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/533167f2-3f23-497c-8d62-0b45a5f3f9f1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="533167f2-3f23-497c-8d62-0b45a5f3f9f1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b7a6afe8-134b-47fd-9b04-575e222d8c99"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="712972127"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(07022) 9438121"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jeremy.benninger@riekmann.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Cranachstr. 392"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="392"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Cranachstr."/> + </extension> + </line> + <city value="Bussestadt"/> + <postalCode value="00355"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="151e84b8-9ac1-4ee4-9a11-96a4173ca4f5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="379988496"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/input.xml new file mode 100644 index 00000000..da56357a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="e17e8259-c3f1-4734-a9d2-f97a9ed66c32"/> + <meta> + <lastUpdated value="2024-02-08T19:21:49.616+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.998.25"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:21:49.616+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/3c5a3cbd-5ac4-4b81-b0c4-354ae1198388"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="3c5a3cbd-5ac4-4b81-b0c4-354ae1198388"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1b40b21b-75c3-45a4-ae52-de00a93c66e1"/> + </subject> + <date value="2024-02-08T19:21:49+01:00"/> + <author> + <reference value="Practitioner/4a8c9bfd-3659-4e2e-968b-2908ece21da9"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/373d64ab-4560-42f1-a065-3ff58b28e6f8"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/0d3b4f33-a54d-4ad4-9dd5-7f2f155a031f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/36dc6c0d-d103-4973-96af-577d214a9bd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/57278eb0-a7bb-49eb-ab68-3242b5b691c2"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="57278eb0-a7bb-49eb-ab68-3242b5b691c2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="73951654"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/1b40b21b-75c3-45a4-ae52-de00a93c66e1"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1b40b21b-75c3-45a4-ae52-de00a93c66e1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1959-07-01"/> + <address> + <type value="both"/> + <line value="Ratiborer Str. 007"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="007"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ratiborer Str."/> + </extension> + </line> + <city value="Claireberg"/> + <postalCode value="86614"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/373d64ab-4560-42f1-a065-3ff58b28e6f8"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="373d64ab-4560-42f1-a065-3ff58b28e6f8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="714643725"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-247-4772661"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lina.mallmann@zaituc.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Rückertstr. 78c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="78c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Rückertstr."/> + </extension> + </line> + <city value="Wollmannheim"/> + <postalCode value="08712"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/0d3b4f33-a54d-4ad4-9dd5-7f2f155a031f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0d3b4f33-a54d-4ad4-9dd5-7f2f155a031f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/0a5ddacf-7c14-4974-ae41-bc6eedc1b21a"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140379"/> + </identifier> + <display value="Münchener Verein Versicherungsgruppe"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/4a8c9bfd-3659-4e2e-968b-2908ece21da9"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4a8c9bfd-3659-4e2e-968b-2908ece21da9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="434355951"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/36dc6c0d-d103-4973-96af-577d214a9bd4"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="36dc6c0d-d103-4973-96af-577d214a9bd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/57278eb0-a7bb-49eb-ab68-3242b5b691c2"/> + </medicationReference> + <subject> + <reference value="Patient/1b40b21b-75c3-45a4-ae52-de00a93c66e1"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/4a8c9bfd-3659-4e2e-968b-2908ece21da9"/> + </requester> + <insurance> + <reference value="Coverage/0d3b4f33-a54d-4ad4-9dd5-7f2f155a031f"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/output.json new file mode 100644 index 00000000..670807d8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "3f310f6f-7ddb-4ea5-91db-cc4326d94958", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.998.25" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9b3089c0-975a-4fd6-b31c-650465a23ddb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b5d080d6-d611-4bdc-af54-5d80bd638384" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b5d080d6-d611-4bdc-af54-5d80bd638384", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "73951654" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "dba0764e-870f-45e5-965a-e936c802f09b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "714643725" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-247-4772661" + }, { + "system": "email", + "value": "lina.mallmann@zaituc.de" + } ], + "address": [ { + "type": "both", + "line": [ "Rückertstr. 78c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "78c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Rückertstr." + } ] + } ], + "city": "Wollmannheim", + "postalCode": "08712", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c9839da3-3dab-4ccc-a4ca-d8a0142a34d4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "434355951" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/output.xml new file mode 100644 index 00000000..984250ee --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_3f310f6f/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="3f310f6f-7ddb-4ea5-91db-cc4326d94958"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.998.25"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9b3089c0-975a-4fd6-b31c-650465a23ddb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b5d080d6-d611-4bdc-af54-5d80bd638384"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b5d080d6-d611-4bdc-af54-5d80bd638384"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="73951654"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="dba0764e-870f-45e5-965a-e936c802f09b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="714643725"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-247-4772661"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lina.mallmann@zaituc.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Rückertstr. 78c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="78c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Rückertstr."/> + </extension> + </line> + <city value="Wollmannheim"/> + <postalCode value="08712"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c9839da3-3dab-4ccc-a4ca-d8a0142a34d4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="434355951"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/input.xml new file mode 100644 index 00000000..858d0117 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9c9429a1-5fea-4efd-af25-895e0dae990f"/> + <meta> + <lastUpdated value="2024-02-08T19:21:06.607+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.995.34"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:21:06.607+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/b8dab91e-380a-4614-bd6f-0e16394c706f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="b8dab91e-380a-4614-bd6f-0e16394c706f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ec1a72a6-fe49-476d-a55c-58d45bb442c7"/> + </subject> + <date value="2024-02-08T19:21:06+01:00"/> + <author> + <reference value="Practitioner/74bcb361-7b45-4bbf-9ada-349c31844c9b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/8cfbcf92-9b35-49cb-aaf6-2c9424f7f329"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/1a25bfba-cdcd-4fc1-89ec-71e8ba6c8372"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/d0b95008-6152-4819-aa89-2c0ef49f8a2c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/1f16baef-810f-43e9-91e9-546c4dc027b6"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1f16baef-810f-43e9-91e9-546c4dc027b6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="46260462"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/ec1a72a6-fe49-476d-a55c-58d45bb442c7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ec1a72a6-fe49-476d-a55c-58d45bb442c7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1983-10-25"/> + <address> + <type value="both"/> + <line value="Luisenstr. 14c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="14c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Luisenstr."/> + </extension> + </line> + <city value="Süd Elisa"/> + <postalCode value="81369"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/8cfbcf92-9b35-49cb-aaf6-2c9424f7f329"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8cfbcf92-9b35-49cb-aaf6-2c9424f7f329"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="382601542"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-902-0356405"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jan.leschnik@lichtenfeld.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Liebigstr. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Liebigstr."/> + </extension> + </line> + <city value="Ost Marius"/> + <postalCode value="85692"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/1a25bfba-cdcd-4fc1-89ec-71e8ba6c8372"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1a25bfba-cdcd-4fc1-89ec-71e8ba6c8372"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="61"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/6b4c6244-a473-4cc1-ab05-6d0cd3e23790"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140186"/> + </identifier> + <display value="HanseMerkur"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/74bcb361-7b45-4bbf-9ada-349c31844c9b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="74bcb361-7b45-4bbf-9ada-349c31844c9b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="804424206"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/d0b95008-6152-4819-aa89-2c0ef49f8a2c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d0b95008-6152-4819-aa89-2c0ef49f8a2c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1f16baef-810f-43e9-91e9-546c4dc027b6"/> + </medicationReference> + <subject> + <reference value="Patient/ec1a72a6-fe49-476d-a55c-58d45bb442c7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/74bcb361-7b45-4bbf-9ada-349c31844c9b"/> + </requester> + <insurance> + <reference value="Coverage/1a25bfba-cdcd-4fc1-89ec-71e8ba6c8372"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/output.json new file mode 100644 index 00000000..43094b4d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "4ee123e6-3e44-412e-bc22-4d1151a387d5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.995.34" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "da4d3da9-7c1e-45b2-9cbb-aaddd22ea8ce", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a5db261e-f5ed-479d-a5de-0453f1a4a10f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a5db261e-f5ed-479d-a5de-0453f1a4a10f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "46260462" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e550f607-daaa-417c-b341-f11ce4838246", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "382601542" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-902-0356405" + }, { + "system": "email", + "value": "jan.leschnik@lichtenfeld.de" + } ], + "address": [ { + "type": "both", + "line": [ "Liebigstr. 9" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "9" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Liebigstr." + } ] + } ], + "city": "Ost Marius", + "postalCode": "85692", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "faebf636-3fb9-4fe5-a700-7de20dcb9bf0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "804424206" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/output.xml new file mode 100644 index 00000000..1074390d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_4ee123e6/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="4ee123e6-3e44-412e-bc22-4d1151a387d5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.995.34"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="da4d3da9-7c1e-45b2-9cbb-aaddd22ea8ce"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a5db261e-f5ed-479d-a5de-0453f1a4a10f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a5db261e-f5ed-479d-a5de-0453f1a4a10f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="46260462"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e550f607-daaa-417c-b341-f11ce4838246"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="382601542"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-902-0356405"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jan.leschnik@lichtenfeld.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Liebigstr. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Liebigstr."/> + </extension> + </line> + <city value="Ost Marius"/> + <postalCode value="85692"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="faebf636-3fb9-4fe5-a700-7de20dcb9bf0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="804424206"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/input.xml new file mode 100644 index 00000000..b3118433 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="bbc51505-a924-44d3-95a1-cdf3ea6e1e12"/> + <meta> + <lastUpdated value="2024-02-08T19:06:05.616+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.768.68"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:06:05.616+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/9417c9fb-f619-47ac-9e82-cf735c3baa33"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="9417c9fb-f619-47ac-9e82-cf735c3baa33"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/6e23aa41-b9a7-427a-bd9f-76b22ecc94f2"/> + </subject> + <date value="2024-02-08T19:06:05+01:00"/> + <author> + <reference value="Practitioner/d4a47344-8491-4e45-9e9d-d395b09e4842"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2bb20da5-9ec4-432e-b0ce-7364a3024719"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b2a89e0d-9701-4ae4-918b-4e1ec67aa77c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/24df256b-4e04-46d7-8c5c-1d44bcf7cea8"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/69edbee6-3e1f-451f-b960-53a10c879038"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="69edbee6-3e1f-451f-b960-53a10c879038"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/6e23aa41-b9a7-427a-bd9f-76b22ecc94f2"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="6e23aa41-b9a7-427a-bd9f-76b22ecc94f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1992-12-04"/> + <address> + <type value="both"/> + <line value="Alfred-Stock-Str. 6"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="6"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Alfred-Stock-Str."/> + </extension> + </line> + <city value="Lillyhagen"/> + <postalCode value="01823"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/2bb20da5-9ec4-432e-b0ce-7364a3024719"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2bb20da5-9ec4-432e-b0ce-7364a3024719"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="206219256"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0011) 867656050"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jolie.deckert@tepper.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Leichlinger Str. 86"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="86"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Leichlinger Str."/> + </extension> + </line> + <city value="Schön Magdalena"/> + <postalCode value="75443"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b2a89e0d-9701-4ae4-918b-4e1ec67aa77c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b2a89e0d-9701-4ae4-918b-4e1ec67aa77c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/0fa88aa5-ff0c-48c5-8072-f1fbc8b54de0"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="103725547"/> + </identifier> + <display value="BKK Herford Minden Ravensberg"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/d4a47344-8491-4e45-9e9d-d395b09e4842"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d4a47344-8491-4e45-9e9d-d395b09e4842"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="279711745"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/24df256b-4e04-46d7-8c5c-1d44bcf7cea8"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="24df256b-4e04-46d7-8c5c-1d44bcf7cea8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/69edbee6-3e1f-451f-b960-53a10c879038"/> + </medicationReference> + <subject> + <reference value="Patient/6e23aa41-b9a7-427a-bd9f-76b22ecc94f2"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/d4a47344-8491-4e45-9e9d-d395b09e4842"/> + </requester> + <insurance> + <reference value="Coverage/b2a89e0d-9701-4ae4-918b-4e1ec67aa77c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/output.json new file mode 100644 index 00000000..3074bd12 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "550e0973-f3c1-4f33-a38e-5abd53eb16ff", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.768.68" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1203556d-5a69-430c-94d4-a07268ae4a83", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3e4559f6-bd46-46ea-a5b6-1c9a0510fbe9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3e4559f6-bd46-46ea-a5b6-1c9a0510fbe9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "35a7d6f9-d096-4010-b01e-8136d99fe2ec", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "206219256" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0011) 867656050" + }, { + "system": "email", + "value": "jolie.deckert@tepper.de" + } ], + "address": [ { + "type": "both", + "line": [ "Leichlinger Str. 86" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "86" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Leichlinger Str." + } ] + } ], + "city": "Schön Magdalena", + "postalCode": "75443", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f8ac4ddc-35b5-4479-9c7a-ed3ccb395e6a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "279711745" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/output.xml new file mode 100644 index 00000000..948ddb4a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_550e0973/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="550e0973-f3c1-4f33-a38e-5abd53eb16ff"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.768.68"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1203556d-5a69-430c-94d4-a07268ae4a83"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3e4559f6-bd46-46ea-a5b6-1c9a0510fbe9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3e4559f6-bd46-46ea-a5b6-1c9a0510fbe9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="35a7d6f9-d096-4010-b01e-8136d99fe2ec"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="206219256"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0011) 867656050"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jolie.deckert@tepper.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Leichlinger Str. 86"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="86"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Leichlinger Str."/> + </extension> + </line> + <city value="Schön Magdalena"/> + <postalCode value="75443"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f8ac4ddc-35b5-4479-9c7a-ed3ccb395e6a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="279711745"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/input.xml new file mode 100644 index 00000000..c9d931b6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5f3e877b-bdc8-4166-8d13-123156f5ba3c"/> + <meta> + <lastUpdated value="2024-02-13T11:24:23.186+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.839.81"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-13T11:24:23.186+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/14debb01-19ca-47b1-b531-f23a5247a231"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="14debb01-19ca-47b1-b531-f23a5247a231"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/9464f5bb-72c6-45ad-97eb-a197c47c7246"/> + </subject> + <date value="2024-02-13T11:24:23+01:00"/> + <author> + <reference value="Practitioner/a7c10125-eb41-433b-aad5-0cc622bf83a3"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/96104855-2546-43ac-b236-d58a67831b7f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/96f1cbfe-9743-4857-9ac5-e9b19ec62b88"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/f9ac880b-b8b7-4851-94f0-e0f7b76aeb46"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/df050e5c-b920-4933-b6e3-f231a205ec3b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="df050e5c-b920-4933-b6e3-f231a205ec3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/9464f5bb-72c6-45ad-97eb-a197c47c7246"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="9464f5bb-72c6-45ad-97eb-a197c47c7246"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + <name> + <use value="official"/> + <family value="Gondern"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Gondern"/> + </extension> + </family> + <given value="Aenna"/> + </name> + <birthDate value="1969-02-04"/> + <address> + <type value="both"/> + <line value="Erich-Klausener-Str. 35"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="35"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Erich-Klausener-Str."/> + </extension> + </line> + <city value="Alt Jack"/> + <postalCode value="81404"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/96104855-2546-43ac-b236-d58a67831b7f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="96104855-2546-43ac-b236-d58a67831b7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="729642118"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0622) 265074965"/> + </telecom> + <telecom> + <system value="email"/> + <value value="miray.lokar@patzwahl.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Marie-Schlei-Str. 67"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="67"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Marie-Schlei-Str."/> + </extension> + </line> + <city value="Nageldorf"/> + <postalCode value="44392"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/96f1cbfe-9743-4857-9ac5-e9b19ec62b88"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="96f1cbfe-9743-4857-9ac5-e9b19ec62b88"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="71"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fdd2b6a3-b2ad-4a0e-a8a7-734017bd80e6"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="106431572"/> + </identifier> + <display value="BKK der G. M. PFAFF AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/a7c10125-eb41-433b-aad5-0cc622bf83a3"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a7c10125-eb41-433b-aad5-0cc622bf83a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="547425702"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/f9ac880b-b8b7-4851-94f0-e0f7b76aeb46"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f9ac880b-b8b7-4851-94f0-e0f7b76aeb46"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/df050e5c-b920-4933-b6e3-f231a205ec3b"/> + </medicationReference> + <subject> + <reference value="Patient/9464f5bb-72c6-45ad-97eb-a197c47c7246"/> + </subject> + <authoredOn value="2024-02-13"/> + <requester> + <reference value="Practitioner/a7c10125-eb41-433b-aad5-0cc622bf83a3"/> + </requester> + <insurance> + <reference value="Coverage/96f1cbfe-9743-4857-9ac5-e9b19ec62b88"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/output.json new file mode 100644 index 00000000..31312bf8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "55258d43-25f6-4ed7-b18f-b5c53414a9f6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.474.839.81" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-13" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a4aef1fb-275d-4e65-8f6e-b3b670cc3e7b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3b858aee-87f0-4969-8c03-bddcb752a3ea" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-13", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3b858aee-87f0-4969-8c03-bddcb752a3ea", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "18c4f936-739a-4822-98f2-d8d9972852a4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "729642118" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0622) 265074965" + }, { + "system": "email", + "value": "miray.lokar@patzwahl.net" + } ], + "address": [ { + "type": "both", + "line": [ "Marie-Schlei-Str. 67" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "67" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Marie-Schlei-Str." + } ] + } ], + "city": "Nageldorf", + "postalCode": "44392", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "da9e00a7-7ee6-43a9-8667-ae47abf3d8b2", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "547425702" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/output.xml new file mode 100644 index 00000000..4c722809 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_55258d43/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="55258d43-25f6-4ed7-b18f-b5c53414a9f6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.839.81"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-13"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a4aef1fb-275d-4e65-8f6e-b3b670cc3e7b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3b858aee-87f0-4969-8c03-bddcb752a3ea"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-13"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3b858aee-87f0-4969-8c03-bddcb752a3ea"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="18c4f936-739a-4822-98f2-d8d9972852a4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="729642118"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0622) 265074965"/> + </telecom> + <telecom> + <system value="email"/> + <value value="miray.lokar@patzwahl.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Marie-Schlei-Str. 67"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="67"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Marie-Schlei-Str."/> + </extension> + </line> + <city value="Nageldorf"/> + <postalCode value="44392"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="da9e00a7-7ee6-43a9-8667-ae47abf3d8b2"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="547425702"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/input.xml new file mode 100644 index 00000000..3496765e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="90d5dd65-592d-49ee-b4da-91d974b44782"/> + <meta> + <lastUpdated value="2024-02-13T11:24:19.674+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.838.84"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-13T11:24:19.674+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/f1fcba8a-2089-48df-b9d1-3fd0ebf44372"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f1fcba8a-2089-48df-b9d1-3fd0ebf44372"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/2b1056c8-05ac-490b-bc0f-9498aa9ca97b"/> + </subject> + <date value="2024-02-13T11:24:19+01:00"/> + <author> + <reference value="Practitioner/0dae4db5-5baf-4f12-97e2-9da390ba38ec"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/12b70d30-9b13-4991-9444-6664176c625d"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/31cb2aef-bd2b-4330-b6e1-4f10e9be7efb"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/da268dcc-0bd0-4aa6-9f95-6ac48a855a7d"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/23508214-d55e-4f87-861a-1a40081c6ac8"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="23508214-d55e-4f87-861a-1a40081c6ac8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/2b1056c8-05ac-490b-bc0f-9498aa9ca97b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="2b1056c8-05ac-490b-bc0f-9498aa9ca97b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + <name> + <use value="official"/> + <family value="Gondern"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Gondern"/> + </extension> + </family> + <given value="Aenna"/> + </name> + <birthDate value="1999-11-19"/> + <address> + <type value="both"/> + <line value="Eichenkamp 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Eichenkamp"/> + </extension> + </line> + <city value="Valerieheim"/> + <postalCode value="13594"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/12b70d30-9b13-4991-9444-6664176c625d"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="12b70d30-9b13-4991-9444-6664176c625d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="475308196"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0958) 130707809"/> + </telecom> + <telecom> + <system value="email"/> + <value value="wilhelm.welz@kofferschlager.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Schopenhauerstr. 35c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="35c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schopenhauerstr."/> + </extension> + </line> + <city value="Hamzafeld"/> + <postalCode value="15855"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/31cb2aef-bd2b-4330-b6e1-4f10e9be7efb"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="31cb2aef-bd2b-4330-b6e1-4f10e9be7efb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="46"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/43b1e718-07b9-4529-86ee-c44ba8cdd6b3"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104424830"/> + </identifier> + <display value="BKK GRILLO‐WERKE AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/0dae4db5-5baf-4f12-97e2-9da390ba38ec"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0dae4db5-5baf-4f12-97e2-9da390ba38ec"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="183015301"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/da268dcc-0bd0-4aa6-9f95-6ac48a855a7d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="da268dcc-0bd0-4aa6-9f95-6ac48a855a7d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/23508214-d55e-4f87-861a-1a40081c6ac8"/> + </medicationReference> + <subject> + <reference value="Patient/2b1056c8-05ac-490b-bc0f-9498aa9ca97b"/> + </subject> + <authoredOn value="2024-02-13"/> + <requester> + <reference value="Practitioner/0dae4db5-5baf-4f12-97e2-9da390ba38ec"/> + </requester> + <insurance> + <reference value="Coverage/31cb2aef-bd2b-4330-b6e1-4f10e9be7efb"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/output.json new file mode 100644 index 00000000..b95244f8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "5665652f-ebc9-4a67-8bf9-35a063c219c2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.474.838.84" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-13" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "05f36a2a-62cc-4d05-8d83-412c0724f6b2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/db8d886a-7ec5-41d4-b325-be2f0488d6dc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-13", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "db8d886a-7ec5-41d4-b325-be2f0488d6dc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8d5a7d94-ad95-4b31-a70d-37bd726dc57b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "475308196" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0958) 130707809" + }, { + "system": "email", + "value": "wilhelm.welz@kofferschlager.com" + } ], + "address": [ { + "type": "both", + "line": [ "Schopenhauerstr. 35c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "35c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Schopenhauerstr." + } ] + } ], + "city": "Hamzafeld", + "postalCode": "15855", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "3e3c42a7-b128-48b8-b04c-a34e70a4416a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "183015301" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/output.xml new file mode 100644 index 00000000..e4a36c7c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5665652f/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5665652f-ebc9-4a67-8bf9-35a063c219c2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.838.84"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-13"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="05f36a2a-62cc-4d05-8d83-412c0724f6b2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/db8d886a-7ec5-41d4-b325-be2f0488d6dc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-13"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="db8d886a-7ec5-41d4-b325-be2f0488d6dc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8d5a7d94-ad95-4b31-a70d-37bd726dc57b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="475308196"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0958) 130707809"/> + </telecom> + <telecom> + <system value="email"/> + <value value="wilhelm.welz@kofferschlager.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Schopenhauerstr. 35c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="35c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schopenhauerstr."/> + </extension> + </line> + <city value="Hamzafeld"/> + <postalCode value="15855"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="3e3c42a7-b128-48b8-b04c-a34e70a4416a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="183015301"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/input.xml new file mode 100644 index 00000000..06cceaa0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="41ecb9a7-be48-4100-99a1-ba07858db65e"/> + <meta> + <lastUpdated value="2024-02-08T19:03:21.057+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.753.16"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:21.057+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/4dc602e6-7c33-417b-925a-e5f7503e9e15"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4dc602e6-7c33-417b-925a-e5f7503e9e15"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/97b2fe9b-a0c2-4fa8-91b7-9923fadb2d4e"/> + </subject> + <date value="2024-02-08T19:03:21+01:00"/> + <author> + <reference value="Practitioner/6faefd86-bea8-4e76-b52c-a11eea2f0435"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/a30a377b-74e2-47de-ba10-738de88cdb44"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/0e2b1a9b-4baa-43dc-8ebc-dfc1b2fa5456"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/b4e54c5a-395f-459a-b7e9-2585e41f98eb"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/8b58a971-50ea-412e-b5d0-5fc7a314e626"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8b58a971-50ea-412e-b5d0-5fc7a314e626"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/97b2fe9b-a0c2-4fa8-91b7-9923fadb2d4e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="97b2fe9b-a0c2-4fa8-91b7-9923fadb2d4e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1988-04-08"/> + <address> + <type value="both"/> + <line value="Ilmstr. 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ilmstr."/> + </extension> + </line> + <city value="Trauthscheid"/> + <postalCode value="03912"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/a30a377b-74e2-47de-ba10-738de88cdb44"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a30a377b-74e2-47de-ba10-738de88cdb44"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="200088168"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0758) 645067737"/> + </telecom> + <telecom> + <system value="email"/> + <value value="immanuel.seigel@hoffman.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Carstens-Ring 57b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="57b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Carstens-Ring"/> + </extension> + </line> + <city value="Gatzkabrunn"/> + <postalCode value="71914"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/0e2b1a9b-4baa-43dc-8ebc-dfc1b2fa5456"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0e2b1a9b-4baa-43dc-8ebc-dfc1b2fa5456"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="83"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/4b416261-bf60-4f18-b8c5-426d594f175f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035576"/> + </identifier> + <display value="BKK Scheufelen"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/6faefd86-bea8-4e76-b52c-a11eea2f0435"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6faefd86-bea8-4e76-b52c-a11eea2f0435"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="309203716"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/b4e54c5a-395f-459a-b7e9-2585e41f98eb"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b4e54c5a-395f-459a-b7e9-2585e41f98eb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8b58a971-50ea-412e-b5d0-5fc7a314e626"/> + </medicationReference> + <subject> + <reference value="Patient/97b2fe9b-a0c2-4fa8-91b7-9923fadb2d4e"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/6faefd86-bea8-4e76-b52c-a11eea2f0435"/> + </requester> + <insurance> + <reference value="Coverage/0e2b1a9b-4baa-43dc-8ebc-dfc1b2fa5456"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/output.json new file mode 100644 index 00000000..53d121c7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "5da0791f-d7e2-4d44-916d-f1f1427b4b45", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.753.16" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e102612a-e3d7-4e28-a843-b79e4e9fda01", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/58e5713f-cc81-4af6-a9eb-e667fedd8b87" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "58e5713f-cc81-4af6-a9eb-e667fedd8b87", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "63e14df2-b909-4579-868f-8c06ccd3639a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "200088168" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0758) 645067737" + }, { + "system": "email", + "value": "immanuel.seigel@hoffman.info" + } ], + "address": [ { + "type": "both", + "line": [ "Karl-Carstens-Ring 57b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "57b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Karl-Carstens-Ring" + } ] + } ], + "city": "Gatzkabrunn", + "postalCode": "71914", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4eccd935-0135-4007-ac08-f3b348986846", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "309203716" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/output.xml new file mode 100644 index 00000000..9bdb6a03 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5da0791f/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5da0791f-d7e2-4d44-916d-f1f1427b4b45"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.753.16"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e102612a-e3d7-4e28-a843-b79e4e9fda01"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/58e5713f-cc81-4af6-a9eb-e667fedd8b87"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="58e5713f-cc81-4af6-a9eb-e667fedd8b87"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="63e14df2-b909-4579-868f-8c06ccd3639a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="200088168"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0758) 645067737"/> + </telecom> + <telecom> + <system value="email"/> + <value value="immanuel.seigel@hoffman.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Carstens-Ring 57b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="57b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Carstens-Ring"/> + </extension> + </line> + <city value="Gatzkabrunn"/> + <postalCode value="71914"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4eccd935-0135-4007-ac08-f3b348986846"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="309203716"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/input.xml new file mode 100644 index 00000000..67130e40 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c88ccdf7-6d35-4beb-af61-0fbb71fd2cd2"/> + <meta> + <lastUpdated value="2024-02-08T19:02:25.907+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.748.31"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:02:25.907+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/15104c2a-ebd5-46b2-9f10-436ebc5e24c4"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="15104c2a-ebd5-46b2-9f10-436ebc5e24c4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/7e53ccab-d571-48ac-a4b6-a2db50275fbc"/> + </subject> + <date value="2024-02-08T19:02:25+01:00"/> + <author> + <reference value="Practitioner/f955f5f9-9715-4889-95b6-3173f69e51f3"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/14784295-5b53-4857-8384-5405abf4fd1c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/80a64522-1f22-4cf2-932d-1ff7e0d50e55"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/85b5cb40-d059-4a99-9cfb-4be1abaec335"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/e191c101-a57e-4998-8640-ebf8e45d1294"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e191c101-a57e-4998-8640-ebf8e45d1294"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/7e53ccab-d571-48ac-a4b6-a2db50275fbc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="7e53ccab-d571-48ac-a4b6-a2db50275fbc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1999-06-05"/> + <address> + <type value="both"/> + <line value="Dhünnstr. 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dhünnstr."/> + </extension> + </line> + <city value="Liaberg"/> + <postalCode value="99069"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/14784295-5b53-4857-8384-5405abf4fd1c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="14784295-5b53-4857-8384-5405abf4fd1c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="384664925"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3412-28869735"/> + </telecom> + <telecom> + <system value="email"/> + <value value="sinan.pietsch@rau.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Weiherstr. 07c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="07c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weiherstr."/> + </extension> + </line> + <city value="Klein Calvinburg"/> + <postalCode value="92983"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/80a64522-1f22-4cf2-932d-1ff7e0d50e55"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="80a64522-1f22-4cf2-932d-1ff7e0d50e55"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="49"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/0cab25c9-d9d0-4078-81a5-00a075fca02d"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108433099"/> + </identifier> + <display value="BKK Schwesternschaft vom BRK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/f955f5f9-9715-4889-95b6-3173f69e51f3"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f955f5f9-9715-4889-95b6-3173f69e51f3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="757953135"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/85b5cb40-d059-4a99-9cfb-4be1abaec335"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="85b5cb40-d059-4a99-9cfb-4be1abaec335"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e191c101-a57e-4998-8640-ebf8e45d1294"/> + </medicationReference> + <subject> + <reference value="Patient/7e53ccab-d571-48ac-a4b6-a2db50275fbc"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/f955f5f9-9715-4889-95b6-3173f69e51f3"/> + </requester> + <insurance> + <reference value="Coverage/80a64522-1f22-4cf2-932d-1ff7e0d50e55"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/output.json new file mode 100644 index 00000000..2029b6c7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "5ed8a5cd-8141-4266-b5bc-c001596381b5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.748.31" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6306e375-a0ae-42a5-a431-2543055a10f5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f2590930-90b3-4418-a9bc-f4593a4f77ce" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f2590930-90b3-4418-a9bc-f4593a4f77ce", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b2cad0ec-1c63-4f31-b9a1-7b3170052b07", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "384664925" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-3412-28869735" + }, { + "system": "email", + "value": "sinan.pietsch@rau.de" + } ], + "address": [ { + "type": "both", + "line": [ "Weiherstr. 07c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "07c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Weiherstr." + } ] + } ], + "city": "Klein Calvinburg", + "postalCode": "92983", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "aeabb5e6-ec38-4347-a7be-6cd62c755d3e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "757953135" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/output.xml new file mode 100644 index 00000000..eb0c167d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_5ed8a5cd/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5ed8a5cd-8141-4266-b5bc-c001596381b5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.748.31"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6306e375-a0ae-42a5-a431-2543055a10f5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f2590930-90b3-4418-a9bc-f4593a4f77ce"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f2590930-90b3-4418-a9bc-f4593a4f77ce"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b2cad0ec-1c63-4f31-b9a1-7b3170052b07"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="384664925"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3412-28869735"/> + </telecom> + <telecom> + <system value="email"/> + <value value="sinan.pietsch@rau.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Weiherstr. 07c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="07c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weiherstr."/> + </extension> + </line> + <city value="Klein Calvinburg"/> + <postalCode value="92983"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="aeabb5e6-ec38-4347-a7be-6cd62c755d3e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="757953135"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/input.xml new file mode 100644 index 00000000..9971193c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="1906d211-d8ca-4635-867e-2b1308755ac1"/> + <meta> + <lastUpdated value="2024-02-08T19:21:53.935+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.999.22"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:21:53.935+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/1fd47752-1a27-4eb6-8d21-5a7a13ead2b1"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1fd47752-1a27-4eb6-8d21-5a7a13ead2b1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/f9cf3a5b-f688-4820-ba61-6d943f1c65b7"/> + </subject> + <date value="2024-02-08T19:21:53+01:00"/> + <author> + <reference value="Practitioner/a17e0c31-44d2-4bec-ab26-0524c849e7d3"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/e2c97d75-fbda-4663-97db-fa6c558078d1"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/4e632510-ed5d-482a-94da-79e9551f078d"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/5a9612fd-eb52-42fa-a3cf-1837ff35a26d"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/44a2f90f-39d2-407b-9ff6-d85f733885de"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="44a2f90f-39d2-407b-9ff6-d85f733885de"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="27318836"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/f9cf3a5b-f688-4820-ba61-6d943f1c65b7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="f9cf3a5b-f688-4820-ba61-6d943f1c65b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1987-03-26"/> + <address> + <type value="both"/> + <line value="Bahnallee 20b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="20b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bahnallee"/> + </extension> + </line> + <city value="Bad Matti"/> + <postalCode value="97961"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/e2c97d75-fbda-4663-97db-fa6c558078d1"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e2c97d75-fbda-4663-97db-fa6c558078d1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="609731540"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(04575) 9941676"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mirac.gruszecki@knut.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Auf der Weide 54"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="54"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auf der Weide"/> + </extension> + </line> + <city value="West Jella"/> + <postalCode value="50049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/4e632510-ed5d-482a-94da-79e9551f078d"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="4e632510-ed5d-482a-94da-79e9551f078d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/a288621a-893e-4c15-8329-2ff974908493"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141450"/> + </identifier> + <display value="INTER"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/a17e0c31-44d2-4bec-ab26-0524c849e7d3"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a17e0c31-44d2-4bec-ab26-0524c849e7d3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="960975636"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/5a9612fd-eb52-42fa-a3cf-1837ff35a26d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5a9612fd-eb52-42fa-a3cf-1837ff35a26d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/44a2f90f-39d2-407b-9ff6-d85f733885de"/> + </medicationReference> + <subject> + <reference value="Patient/f9cf3a5b-f688-4820-ba61-6d943f1c65b7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/a17e0c31-44d2-4bec-ab26-0524c849e7d3"/> + </requester> + <insurance> + <reference value="Coverage/4e632510-ed5d-482a-94da-79e9551f078d"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/output.json new file mode 100644 index 00000000..6a256881 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "670603fd-0652-4d5e-96fb-d357e4723e48", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.999.22" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "91ea2815-3dd2-484e-9cb4-a51c52875e1b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/01306fbd-1e22-4ed6-8b50-4b8557ad8d4a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "01306fbd-1e22-4ed6-8b50-4b8557ad8d4a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "27318836" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6b8cc4cc-b884-4165-920b-9c37bbcfe98a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "609731540" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(04575) 9941676" + }, { + "system": "email", + "value": "mirac.gruszecki@knut.ch" + } ], + "address": [ { + "type": "both", + "line": [ "Auf der Weide 54" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "54" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Auf der Weide" + } ] + } ], + "city": "West Jella", + "postalCode": "50049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "11f75bc6-eed2-4cc5-ba89-1aff6d9e2d77", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "960975636" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/output.xml new file mode 100644 index 00000000..6f13ed04 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_670603fd/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="670603fd-0652-4d5e-96fb-d357e4723e48"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.999.22"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="91ea2815-3dd2-484e-9cb4-a51c52875e1b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/01306fbd-1e22-4ed6-8b50-4b8557ad8d4a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="01306fbd-1e22-4ed6-8b50-4b8557ad8d4a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="27318836"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6b8cc4cc-b884-4165-920b-9c37bbcfe98a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="609731540"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(04575) 9941676"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mirac.gruszecki@knut.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Auf der Weide 54"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="54"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auf der Weide"/> + </extension> + </line> + <city value="West Jella"/> + <postalCode value="50049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="11f75bc6-eed2-4cc5-ba89-1aff6d9e2d77"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="960975636"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/input.xml new file mode 100644 index 00000000..42595c77 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="b4bf1696-8e3a-4cab-b08f-f54bea6ec8e5"/> + <meta> + <lastUpdated value="2024-02-08T19:22:15.368+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.033.000.19"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:22:15.368+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/67937ba1-3517-4254-91e3-f712f8670939"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="67937ba1-3517-4254-91e3-f712f8670939"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c50e881c-543c-4d40-94f8-fcbeca3e1209"/> + </subject> + <date value="2024-02-08T19:22:15+01:00"/> + <author> + <reference value="Practitioner/7098d491-104d-41b2-88ba-47c8b726742e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/61f02908-fa5a-4a22-b260-38df7e66e35e"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/028ccaa2-1cc3-4b6b-a17d-d85e0ba3088c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/ea671a1a-0514-454c-8fe9-5c730c9faaca"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/d321be67-767a-49d6-9882-55b76f937acb"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d321be67-767a-49d6-9882-55b76f937acb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="27677334"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/c50e881c-543c-4d40-94f8-fcbeca3e1209"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c50e881c-543c-4d40-94f8-fcbeca3e1209"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1986-01-12"/> + <address> + <type value="both"/> + <line value="Am Blauen Berg 92a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="92a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Blauen Berg"/> + </extension> + </line> + <city value="Neu Titushagen"/> + <postalCode value="06076"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/61f02908-fa5a-4a22-b260-38df7e66e35e"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="61f02908-fa5a-4a22-b260-38df7e66e35e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="476736714"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0048) 622241522"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ismael.riethmüller@brauer.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Kanalstr. 01c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kanalstr."/> + </extension> + </line> + <city value="Griemburg"/> + <postalCode value="85414"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/028ccaa2-1cc3-4b6b-a17d-d85e0ba3088c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="028ccaa2-1cc3-4b6b-a17d-d85e0ba3088c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="83"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/285bcd76-1bde-40bd-b99a-7bf9b923d768"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140379"/> + </identifier> + <display value="Münchener Verein Versicherungsgruppe"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/7098d491-104d-41b2-88ba-47c8b726742e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7098d491-104d-41b2-88ba-47c8b726742e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="874457048"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/ea671a1a-0514-454c-8fe9-5c730c9faaca"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ea671a1a-0514-454c-8fe9-5c730c9faaca"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d321be67-767a-49d6-9882-55b76f937acb"/> + </medicationReference> + <subject> + <reference value="Patient/c50e881c-543c-4d40-94f8-fcbeca3e1209"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/7098d491-104d-41b2-88ba-47c8b726742e"/> + </requester> + <insurance> + <reference value="Coverage/028ccaa2-1cc3-4b6b-a17d-d85e0ba3088c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/output.json new file mode 100644 index 00000000..6ccbdfdc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "6f96c033-6f59-4828-bec7-ea7383d4633f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.033.000.19" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "ab2bcf6e-1c48-4328-8c5e-89aa868f80ca", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/72837df0-5489-4133-9e89-52bedb38b753" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "72837df0-5489-4133-9e89-52bedb38b753", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "27677334" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f8155559-76c9-49bf-b2b3-7f1d0f91342e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "476736714" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0048) 622241522" + }, { + "system": "email", + "value": "ismael.riethmüller@brauer.org" + } ], + "address": [ { + "type": "both", + "line": [ "Kanalstr. 01c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "01c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Kanalstr." + } ] + } ], + "city": "Griemburg", + "postalCode": "85414", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2133bce0-ce5b-44f6-9e50-81da60d8d31a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "874457048" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/output.xml new file mode 100644 index 00000000..a9d27e91 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_6f96c033/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6f96c033-6f59-4828-bec7-ea7383d4633f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.033.000.19"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ab2bcf6e-1c48-4328-8c5e-89aa868f80ca"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/72837df0-5489-4133-9e89-52bedb38b753"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="72837df0-5489-4133-9e89-52bedb38b753"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="27677334"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f8155559-76c9-49bf-b2b3-7f1d0f91342e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="476736714"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0048) 622241522"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ismael.riethmüller@brauer.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Kanalstr. 01c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kanalstr."/> + </extension> + </line> + <city value="Griemburg"/> + <postalCode value="85414"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2133bce0-ce5b-44f6-9e50-81da60d8d31a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="874457048"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/input.xml new file mode 100644 index 00000000..1a1a24f7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="05168195-7a18-423f-97b7-4281a99396ae"/> + <meta> + <lastUpdated value="2024-02-08T19:21:00.107+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.994.37"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:21:00.107+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/a5a79e57-e05e-425d-a72b-7f6b857e1dca"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a5a79e57-e05e-425d-a72b-7f6b857e1dca"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ab199aec-bfd6-4b35-9e8a-77806c142b9b"/> + </subject> + <date value="2024-02-08T19:21:00+01:00"/> + <author> + <reference value="Practitioner/e256a490-76dd-4fe9-b624-d0bb9101449e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/8e688089-d4b2-4dcb-a245-511942ff25be"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/bddaebe6-bd60-4180-a7a5-5a7396edd0d6"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/715981a5-7222-4b26-b5a9-dfde9a05c8a5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/86ea5ae2-bb11-4e5d-827e-f2ca5dcb291b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="86ea5ae2-bb11-4e5d-827e-f2ca5dcb291b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="93081505"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/ab199aec-bfd6-4b35-9e8a-77806c142b9b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ab199aec-bfd6-4b35-9e8a-77806c142b9b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2001-01-27"/> + <address> + <type value="both"/> + <line value="Günther-Weisenborn-Str. 92b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="92b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Günther-Weisenborn-Str."/> + </extension> + </line> + <city value="Cedricland"/> + <postalCode value="27129"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/8e688089-d4b2-4dcb-a245-511942ff25be"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8e688089-d4b2-4dcb-a245-511942ff25be"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="024545375"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(09883) 7244642"/> + </telecom> + <telecom> + <system value="email"/> + <value value="arne.griese@vogt.de"/> + </telecom> + <address> + <type value="both"/> + <line value="An der Evangelischen Kirche 399"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="399"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="An der Evangelischen Kirche"/> + </extension> + </line> + <city value="West Evastadt"/> + <postalCode value="45627"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/bddaebe6-bd60-4180-a7a5-5a7396edd0d6"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="bddaebe6-bd60-4180-a7a5-5a7396edd0d6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="02"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/76f4e134-aa0b-406c-9730-63244eead690"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141358"/> + </identifier> + <display value="Provinzial"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/e256a490-76dd-4fe9-b624-d0bb9101449e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e256a490-76dd-4fe9-b624-d0bb9101449e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="097388053"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/715981a5-7222-4b26-b5a9-dfde9a05c8a5"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="715981a5-7222-4b26-b5a9-dfde9a05c8a5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/86ea5ae2-bb11-4e5d-827e-f2ca5dcb291b"/> + </medicationReference> + <subject> + <reference value="Patient/ab199aec-bfd6-4b35-9e8a-77806c142b9b"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/e256a490-76dd-4fe9-b624-d0bb9101449e"/> + </requester> + <insurance> + <reference value="Coverage/bddaebe6-bd60-4180-a7a5-5a7396edd0d6"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/output.json new file mode 100644 index 00000000..b04c9952 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "76455c58-041c-44f4-b11d-524834f14dd0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.994.37" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "bcb27605-dfd1-43f2-9871-7ff6ece13f34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/004221c2-be2a-47a8-929b-ffd30e660d0f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "004221c2-be2a-47a8-929b-ffd30e660d0f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "93081505" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "01a062c4-376d-49ef-b42b-b4fdc2b907ca", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "024545375" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(09883) 7244642" + }, { + "system": "email", + "value": "arne.griese@vogt.de" + } ], + "address": [ { + "type": "both", + "line": [ "An der Evangelischen Kirche 399" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "399" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "An der Evangelischen Kirche" + } ] + } ], + "city": "West Evastadt", + "postalCode": "45627", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c5deb48c-24a2-499e-b874-1071a2f874f1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "097388053" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/output.xml new file mode 100644 index 00000000..dd5b3686 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_76455c58/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="76455c58-041c-44f4-b11d-524834f14dd0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.994.37"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="bcb27605-dfd1-43f2-9871-7ff6ece13f34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/004221c2-be2a-47a8-929b-ffd30e660d0f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="004221c2-be2a-47a8-929b-ffd30e660d0f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="93081505"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="01a062c4-376d-49ef-b42b-b4fdc2b907ca"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="024545375"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(09883) 7244642"/> + </telecom> + <telecom> + <system value="email"/> + <value value="arne.griese@vogt.de"/> + </telecom> + <address> + <type value="both"/> + <line value="An der Evangelischen Kirche 399"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="399"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="An der Evangelischen Kirche"/> + </extension> + </line> + <city value="West Evastadt"/> + <postalCode value="45627"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c5deb48c-24a2-499e-b874-1071a2f874f1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="097388053"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/input.xml new file mode 100644 index 00000000..8859e5c9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="02ad9b11-4b60-48b2-a40a-08a13fbfa698"/> + <meta> + <lastUpdated value="2024-02-13T11:25:46.097+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.849.51"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-13T11:25:46.097+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/70600d26-5c79-46d8-b596-5314d6d1da7d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="70600d26-5c79-46d8-b596-5314d6d1da7d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/a9bf401a-57fe-47b2-af60-c41477f1f367"/> + </subject> + <date value="2024-02-13T11:25:46+01:00"/> + <author> + <reference value="Practitioner/f3e3bd37-94b3-4df7-9932-b8b596913ba0"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/f12f19c8-c236-402d-b176-236e97328b39"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/9ceddd83-1852-4f4a-b976-d52330f48dfe"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/b9ef75cb-6c6f-4a46-a562-22ab56be3d6f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/f8db2a4c-5a5a-491c-b649-f6fcf8af12ca"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f8db2a4c-5a5a-491c-b649-f6fcf8af12ca"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/a9bf401a-57fe-47b2-af60-c41477f1f367"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="a9bf401a-57fe-47b2-af60-c41477f1f367"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="C020222113"/> + </identifier> + <name> + <use value="official"/> + <family value="Fox"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Fox"/> + </extension> + </family> + <given value="Lucius"/> + </name> + <birthDate value="1959-10-21"/> + <address> + <type value="both"/> + <line value="Myliusstr. 17b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Myliusstr."/> + </extension> + </line> + <city value="Schön Lucahagen"/> + <postalCode value="14615"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/f12f19c8-c236-402d-b176-236e97328b39"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f12f19c8-c236-402d-b176-236e97328b39"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="557235300"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0799) 538609283"/> + </telecom> + <telecom> + <system value="email"/> + <value value="annabelle.hertel@helmke.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Auf'm Kamp 223"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="223"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auf'm Kamp"/> + </extension> + </line> + <city value="Neu Helenheim"/> + <postalCode value="41048"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/9ceddd83-1852-4f4a-b976-d52330f48dfe"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="9ceddd83-1852-4f4a-b976-d52330f48dfe"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="98"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/40dc2fdf-dfc8-48dd-8024-b87082ea3506"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="105230101"/> + </identifier> + <display value="HEAG BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/f3e3bd37-94b3-4df7-9932-b8b596913ba0"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f3e3bd37-94b3-4df7-9932-b8b596913ba0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="207670259"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/b9ef75cb-6c6f-4a46-a562-22ab56be3d6f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b9ef75cb-6c6f-4a46-a562-22ab56be3d6f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f8db2a4c-5a5a-491c-b649-f6fcf8af12ca"/> + </medicationReference> + <subject> + <reference value="Patient/a9bf401a-57fe-47b2-af60-c41477f1f367"/> + </subject> + <authoredOn value="2024-02-13"/> + <requester> + <reference value="Practitioner/f3e3bd37-94b3-4df7-9932-b8b596913ba0"/> + </requester> + <insurance> + <reference value="Coverage/9ceddd83-1852-4f4a-b976-d52330f48dfe"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/output.json new file mode 100644 index 00000000..a9b2ceb7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "78aebb81-146e-4528-a605-21ea3cfaea85", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.474.849.51" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-13" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "24566dae-d41d-433f-a27c-cf1871d68bc4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/fc461f3d-1127-4bdd-9ddc-ced553950677" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-13", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fc461f3d-1127-4bdd-9ddc-ced553950677", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "536f8ff0-a082-4225-8253-741fbd5c53d8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "557235300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0799) 538609283" + }, { + "system": "email", + "value": "annabelle.hertel@helmke.com" + } ], + "address": [ { + "type": "both", + "line": [ "Auf'm Kamp 223" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "223" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Auf'm Kamp" + } ] + } ], + "city": "Neu Helenheim", + "postalCode": "41048", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "14d14332-86b4-4afe-bfab-848d1ad57042", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "207670259" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/output.xml new file mode 100644 index 00000000..d6a07817 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_78aebb81/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="78aebb81-146e-4528-a605-21ea3cfaea85"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.849.51"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-13"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="24566dae-d41d-433f-a27c-cf1871d68bc4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fc461f3d-1127-4bdd-9ddc-ced553950677"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-13"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fc461f3d-1127-4bdd-9ddc-ced553950677"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="536f8ff0-a082-4225-8253-741fbd5c53d8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="557235300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0799) 538609283"/> + </telecom> + <telecom> + <system value="email"/> + <value value="annabelle.hertel@helmke.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Auf'm Kamp 223"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="223"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auf'm Kamp"/> + </extension> + </line> + <city value="Neu Helenheim"/> + <postalCode value="41048"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="14d14332-86b4-4afe-bfab-848d1ad57042"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="207670259"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/input.xml new file mode 100644 index 00000000..086090a9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5093c3ab-b34d-4d1a-9b12-47396c7779ef"/> + <meta> + <lastUpdated value="2024-02-08T19:04:54.903+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.764.80"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:04:54.903+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/5a943779-7455-4ab6-b9d6-34db310d62f2"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5a943779-7455-4ab6-b9d6-34db310d62f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c72488fe-8f3c-4a64-82a8-aa63a1e4514b"/> + </subject> + <date value="2024-02-08T19:04:54+01:00"/> + <author> + <reference value="Practitioner/e103913e-3b51-4197-a728-678e00e90aef"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4a1a12b5-520f-41d7-8705-173fb3a318ad"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b4d55984-4b2c-4b3a-b633-17c732eb001f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/0a477b86-cd17-4c37-90e4-89117b735a14"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/59321cad-29d5-4873-9f7e-d4e9460578fa"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="59321cad-29d5-4873-9f7e-d4e9460578fa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/c72488fe-8f3c-4a64-82a8-aa63a1e4514b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c72488fe-8f3c-4a64-82a8-aa63a1e4514b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1996-08-30"/> + <address> + <type value="both"/> + <line value="Friedensstr. 7"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="7"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Friedensstr."/> + </extension> + </line> + <city value="Henrikedorf"/> + <postalCode value="16975"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/4a1a12b5-520f-41d7-8705-173fb3a318ad"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4a1a12b5-520f-41d7-8705-173fb3a318ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="035362503"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-514-9983229"/> + </telecom> + <telecom> + <system value="email"/> + <value value="erik.gauder@borsch.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Ortelsburger Str. 75a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="75a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ortelsburger Str."/> + </extension> + </line> + <city value="Illinggrün"/> + <postalCode value="36070"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b4d55984-4b2c-4b3a-b633-17c732eb001f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b4d55984-4b2c-4b3a-b633-17c732eb001f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="20"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/204924b7-57b3-46ed-bf4e-17cd6fdca2b3"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="103525909"/> + </identifier> + <display value="BKK Achenbach Buschhütten"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/e103913e-3b51-4197-a728-678e00e90aef"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e103913e-3b51-4197-a728-678e00e90aef"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="333698756"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/0a477b86-cd17-4c37-90e4-89117b735a14"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0a477b86-cd17-4c37-90e4-89117b735a14"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/59321cad-29d5-4873-9f7e-d4e9460578fa"/> + </medicationReference> + <subject> + <reference value="Patient/c72488fe-8f3c-4a64-82a8-aa63a1e4514b"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/e103913e-3b51-4197-a728-678e00e90aef"/> + </requester> + <insurance> + <reference value="Coverage/b4d55984-4b2c-4b3a-b633-17c732eb001f"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/output.json new file mode 100644 index 00000000..8986f00a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "7b9e2504-bc8f-45d8-8990-7aed7b7f1f4e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.764.80" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9c08f435-54b7-470a-b8a3-e34f132b38c9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c4ac2cc7-7c60-4ee2-93c4-5b2db6b46d13" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c4ac2cc7-7c60-4ee2-93c4-5b2db6b46d13", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "acc71e49-f9d3-4b11-9bfb-ede8ce507261", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "035362503" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-514-9983229" + }, { + "system": "email", + "value": "erik.gauder@borsch.net" + } ], + "address": [ { + "type": "both", + "line": [ "Ortelsburger Str. 75a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "75a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Ortelsburger Str." + } ] + } ], + "city": "Illinggrün", + "postalCode": "36070", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c68cacf6-e2b0-469e-8cb3-9c790a9bcaad", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "333698756" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/output.xml new file mode 100644 index 00000000..7e2c5afa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_7b9e2504/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="7b9e2504-bc8f-45d8-8990-7aed7b7f1f4e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.764.80"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9c08f435-54b7-470a-b8a3-e34f132b38c9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c4ac2cc7-7c60-4ee2-93c4-5b2db6b46d13"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c4ac2cc7-7c60-4ee2-93c4-5b2db6b46d13"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="acc71e49-f9d3-4b11-9bfb-ede8ce507261"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="035362503"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-514-9983229"/> + </telecom> + <telecom> + <system value="email"/> + <value value="erik.gauder@borsch.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Ortelsburger Str. 75a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="75a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ortelsburger Str."/> + </extension> + </line> + <city value="Illinggrün"/> + <postalCode value="36070"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c68cacf6-e2b0-469e-8cb3-9c790a9bcaad"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="333698756"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/input.xml new file mode 100644 index 00000000..09afca96 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="dac55c3e-43cc-4109-ac4c-d6af9f83e868"/> + <meta> + <lastUpdated value="2024-02-08T19:06:25.492+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.770.62"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:06:25.492+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/d9670396-7497-4ebd-9e0e-165d1f63c497"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d9670396-7497-4ebd-9e0e-165d1f63c497"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + </subject> + <date value="2024-02-08T19:06:25+01:00"/> + <author> + <reference value="Practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/9a1b2729-f4bf-43b2-aff7-05cb692790dc"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/620d75ec-ec4c-418a-a0d7-7cbde942be17"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/3bf80c02-5578-44dc-ad8e-c2f92cd581ba"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3bf80c02-5578-44dc-ad8e-c2f92cd581ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="61252891"/> + </coding> + <text value="Gemvomilsäure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1982-01-05"/> + <address> + <type value="both"/> + <line value="Knochenbergsweg 98c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="98c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Knochenbergsweg"/> + </extension> + </line> + <city value="Rahngrün"/> + <postalCode value="79738"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/9a1b2729-f4bf-43b2-aff7-05cb692790dc"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9a1b2729-f4bf-43b2-aff7-05cb692790dc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614137063"/> + </identifier> + <name value="Arztpraxis Arzt"/> + <telecom> + <system value="phone"/> + <value value="+49-073-0437663"/> + </telecom> + <telecom> + <system value="email"/> + <value value="teresa.roggatz@evers.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Burgweg 88"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="88"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Burgweg"/> + </extension> + </line> + <city value="Jonland"/> + <postalCode value="15501"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c58da998-79a6-4a4b-afd3-4834bde2be4f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104424830"/> + </identifier> + <display value="BKK GRILLO‐WERKE AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="176464353"/> + </identifier> + <name> + <use value="official"/> + <family value="Arzt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Arzt"/> + </extension> + </family> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/620d75ec-ec4c-418a-a0d7-7cbde942be17"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="620d75ec-ec4c-418a-a0d7-7cbde942be17"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3bf80c02-5578-44dc-ad8e-c2f92cd581ba"/> + </medicationReference> + <subject> + <reference value="Patient/cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + </requester> + <insurance> + <reference value="Coverage/c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/output.json new file mode 100644 index 00000000..dc36c194 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "83c10e2d-b415-4541-b731-dd10c15db75d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.770.62" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "eb51b7ce-a0e0-4621-8d0f-b65e316af176", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f83732fb-e351-406d-a6db-45cc98a9dfbe" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f83732fb-e351-406d-a6db-45cc98a9dfbe", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "61252891" + } ], + "text": "Gemvomilsäure" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "335e0a8d-1a89-43e2-a08c-73c31de0531a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "614137063" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Arzt", + "telecom": [ { + "system": "phone", + "value": "+49-073-0437663" + }, { + "system": "email", + "value": "teresa.roggatz@evers.name" + } ], + "address": [ { + "type": "both", + "line": [ "Burgweg 88" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "88" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Burgweg" + } ] + } ], + "city": "Jonland", + "postalCode": "15501", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e6cde8c7-addc-446b-820c-8d171add5c6a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "176464353" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Kein Arzt", + "family": "Arzt", + "given": [ "Kein" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/output.xml new file mode 100644 index 00000000..da750a45 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_83c10e2d/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="83c10e2d-b415-4541-b731-dd10c15db75d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.770.62"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="eb51b7ce-a0e0-4621-8d0f-b65e316af176"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f83732fb-e351-406d-a6db-45cc98a9dfbe"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f83732fb-e351-406d-a6db-45cc98a9dfbe"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="61252891"/> + </coding> + <text value="Gemvomilsäure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="335e0a8d-1a89-43e2-a08c-73c31de0531a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614137063"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Arzt"/> + <telecom> + <system value="phone"/> + <value value="+49-073-0437663"/> + </telecom> + <telecom> + <system value="email"/> + <value value="teresa.roggatz@evers.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Burgweg 88"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="88"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Burgweg"/> + </extension> + </line> + <city value="Jonland"/> + <postalCode value="15501"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e6cde8c7-addc-446b-820c-8d171add5c6a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="176464353"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Kein Arzt"/> + <family value="Arzt"/> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/input.xml new file mode 100644 index 00000000..436acecf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/input.xml @@ -0,0 +1,403 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c79c0fe3-008c-457e-a850-3ebcee3f0eb4"/> + <meta> + <lastUpdated value="2024-02-08T19:11:27.699+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.788.08"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:11:27.699+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/1731d2df-2079-4ebf-a14f-40537202b323"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1731d2df-2079-4ebf-a14f-40537202b323"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/8a11cc7f-1d1c-49e1-85b1-c256b80f604d"/> + </subject> + <date value="2024-02-08T19:11:27+01:00"/> + <author> + <reference value="Practitioner/29f4115f-8ea3-4811-90cc-4238bbcc9044"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/f7da1bab-c58e-4f03-98b2-4e389a506f0c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/d1f0a811-7121-4a3e-96e8-88a84924ebeb"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/9f6500cd-dd6d-404b-ac6d-7743ed6e6d50"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/7a994aab-1679-4a11-9969-9ec8b878f194"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7a994aab-1679-4a11-9969-9ec8b878f194"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="53825226"/> + </coding> + <text value="Acialian"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/8a11cc7f-1d1c-49e1-85b1-c256b80f604d"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="8a11cc7f-1d1c-49e1-85b1-c256b80f604d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="2000-11-09"/> + <address> + <type value="both"/> + <line value="Liebigstr. 205"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="205"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Liebigstr."/> + </extension> + </line> + <city value="Victoriaberg"/> + <postalCode value="91381"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/f7da1bab-c58e-4f03-98b2-4e389a506f0c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f7da1bab-c58e-4f03-98b2-4e389a506f0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="553151319"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0741) 498956760"/> + </telecom> + <telecom> + <system value="email"/> + <value value="edwin.mai@hommel.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Bornheimer Str. 39c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="39c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bornheimer Str."/> + </extension> + </line> + <city value="West Davinbrunn"/> + <postalCode value="97176"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/d1f0a811-7121-4a3e-96e8-88a84924ebeb"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="d1f0a811-7121-4a3e-96e8-88a84924ebeb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="20"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/8f4dc3c3-c35f-47d0-9c4e-4ecb174216bc"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="100609049"/> + </identifier> + <display value="LKK Mittel‐ und Ostdeutschland"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/29f4115f-8ea3-4811-90cc-4238bbcc9044"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="29f4115f-8ea3-4811-90cc-4238bbcc9044"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="556570801"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/9f6500cd-dd6d-404b-ac6d-7743ed6e6d50"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9f6500cd-dd6d-404b-ac6d-7743ed6e6d50"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-05-08"/> + <end value="2024-08-06"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:a415d54e-a4c5-4701-9388-6f47bd1f2ca8"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7a994aab-1679-4a11-9969-9ec8b878f194"/> + </medicationReference> + <subject> + <reference value="Patient/8a11cc7f-1d1c-49e1-85b1-c256b80f604d"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/29f4115f-8ea3-4811-90cc-4238bbcc9044"/> + </requester> + <insurance> + <reference value="Coverage/d1f0a811-7121-4a3e-96e8-88a84924ebeb"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/output.json new file mode 100644 index 00000000..18d60bcd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/output.json @@ -0,0 +1,234 @@ +{ + "resourceType": "Parameters", + "id": "840ab9b1-7e7c-4655-abe6-67a94d8943e0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.788.08" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c3f6e478-908d-47c2-8404-107110b97a85", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-05-08", + "end": "2024-08-06" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:a415d54e-a4c5-4701-9388-6f47bd1f2ca8" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/14926b2d-93fc-4cc2-ab95-d7e9bd9362a7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "14926b2d-93fc-4cc2-ab95-d7e9bd9362a7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "53825226" + } ], + "text": "Acialian" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8ba7a6a6-6760-4ad0-ab70-1a864315d2f1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "553151319" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0741) 498956760" + }, { + "system": "email", + "value": "edwin.mai@hommel.name" + } ], + "address": [ { + "type": "both", + "line": [ "Bornheimer Str. 39c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "39c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Bornheimer Str." + } ] + } ], + "city": "West Davinbrunn", + "postalCode": "97176", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6b457149-695e-4516-a1e6-8fd898fb55a6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "556570801" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/output.xml new file mode 100644 index 00000000..92116474 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_840ab9b1/output.xml @@ -0,0 +1,237 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="840ab9b1-7e7c-4655-abe6-67a94d8943e0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.788.08"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c3f6e478-908d-47c2-8404-107110b97a85"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-05-08"/> + <end value="2024-08-06"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:a415d54e-a4c5-4701-9388-6f47bd1f2ca8"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/14926b2d-93fc-4cc2-ab95-d7e9bd9362a7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="14926b2d-93fc-4cc2-ab95-d7e9bd9362a7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="53825226"/> + </coding> + <text value="Acialian"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8ba7a6a6-6760-4ad0-ab70-1a864315d2f1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="553151319"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0741) 498956760"/> + </telecom> + <telecom> + <system value="email"/> + <value value="edwin.mai@hommel.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Bornheimer Str. 39c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="39c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bornheimer Str."/> + </extension> + </line> + <city value="West Davinbrunn"/> + <postalCode value="97176"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6b457149-695e-4516-a1e6-8fd898fb55a6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="556570801"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/input.xml new file mode 100644 index 00000000..928aa91e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/input.xml @@ -0,0 +1,403 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="bf973351-0c57-4bc1-baa8-d7c582195f15"/> + <meta> + <lastUpdated value="2024-02-08T19:10:22.207+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.783.23"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:10:22.207+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/60ad4b2b-0eff-49ae-9dc2-7d1a9b7bc4b2"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="60ad4b2b-0eff-49ae-9dc2-7d1a9b7bc4b2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="14"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/5c16270e-68ab-4102-924b-9f95c43684c7"/> + </subject> + <date value="2024-02-08T19:10:22+01:00"/> + <author> + <reference value="Practitioner/0e183ae2-45a8-47a6-9ce5-2ad73000ee85"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/179e2677-1eae-4562-845e-f4f63f402ccd"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/1e89c7b5-f2b8-487f-97bf-80feb610476c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/53d65237-cef0-4445-a3f6-b83d51266a97"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/49e39da1-cb64-4664-8867-41acc19dd7d6"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="49e39da1-cb64-4664-8867-41acc19dd7d6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64996244"/> + </coding> + <text value="Amoamiproston"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/5c16270e-68ab-4102-924b-9f95c43684c7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="5c16270e-68ab-4102-924b-9f95c43684c7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1967-01-24"/> + <address> + <type value="both"/> + <line value="Lehner Mühle 52b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="52b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lehner Mühle"/> + </extension> + </line> + <city value="Klein Fiona"/> + <postalCode value="52806"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/179e2677-1eae-4562-845e-f4f63f402ccd"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="179e2677-1eae-4562-845e-f4f63f402ccd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614566446"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-1696-50296460"/> + </telecom> + <telecom> + <system value="email"/> + <value value="raphael.bieler@horna.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Jägerstr. 6"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="6"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Jägerstr."/> + </extension> + </line> + <city value="Neu Can"/> + <postalCode value="78332"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/1e89c7b5-f2b8-487f-97bf-80feb610476c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1e89c7b5-f2b8-487f-97bf-80feb610476c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/4d195251-5563-48a0-aeef-20ab174773f0"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="107832012"/> + </identifier> + <display value="BKK VerbundPlus"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/0e183ae2-45a8-47a6-9ce5-2ad73000ee85"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0e183ae2-45a8-47a6-9ce5-2ad73000ee85"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="811131577"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/53d65237-cef0-4445-a3f6-b83d51266a97"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53d65237-cef0-4445-a3f6-b83d51266a97"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-02-08"/> + <end value="2024-05-08"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:bd9c009f-514a-4ed2-a1ae-d895273794e2"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/49e39da1-cb64-4664-8867-41acc19dd7d6"/> + </medicationReference> + <subject> + <reference value="Patient/5c16270e-68ab-4102-924b-9f95c43684c7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/0e183ae2-45a8-47a6-9ce5-2ad73000ee85"/> + </requester> + <insurance> + <reference value="Coverage/1e89c7b5-f2b8-487f-97bf-80feb610476c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/output.json new file mode 100644 index 00000000..413d5041 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/output.json @@ -0,0 +1,234 @@ +{ + "resourceType": "Parameters", + "id": "862aa430-7e77-46bf-a812-2b8462b1af9a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.783.23" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "99eb6227-10fa-44ac-b4b1-f522a79dfcb9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-02-08", + "end": "2024-05-08" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:bd9c009f-514a-4ed2-a1ae-d895273794e2" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/2ce6f086-e5f5-4b4e-9be6-46f2733b4a49" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2ce6f086-e5f5-4b4e-9be6-46f2733b4a49", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "64996244" + } ], + "text": "Amoamiproston" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d01742a7-10ea-4423-b032-feba361338e3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "614566446" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-1696-50296460" + }, { + "system": "email", + "value": "raphael.bieler@horna.info" + } ], + "address": [ { + "type": "both", + "line": [ "Jägerstr. 6" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "6" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Jägerstr." + } ] + } ], + "city": "Neu Can", + "postalCode": "78332", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "3351dc60-be88-4de9-8e46-8e1f69192a6e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "811131577" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/output.xml new file mode 100644 index 00000000..f1cda740 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_862aa430/output.xml @@ -0,0 +1,237 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="862aa430-7e77-46bf-a812-2b8462b1af9a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.783.23"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="99eb6227-10fa-44ac-b4b1-f522a79dfcb9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-02-08"/> + <end value="2024-05-08"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:bd9c009f-514a-4ed2-a1ae-d895273794e2"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/2ce6f086-e5f5-4b4e-9be6-46f2733b4a49"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2ce6f086-e5f5-4b4e-9be6-46f2733b4a49"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64996244"/> + </coding> + <text value="Amoamiproston"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d01742a7-10ea-4423-b032-feba361338e3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614566446"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-1696-50296460"/> + </telecom> + <telecom> + <system value="email"/> + <value value="raphael.bieler@horna.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Jägerstr. 6"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="6"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Jägerstr."/> + </extension> + </line> + <city value="Neu Can"/> + <postalCode value="78332"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="3351dc60-be88-4de9-8e46-8e1f69192a6e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="811131577"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/input.xml new file mode 100644 index 00000000..f4b5d26f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="b0ce4ff1-1a81-4fea-a4d6-a2d4f774e8bd"/> + <meta> + <lastUpdated value="2024-02-08T19:02:41.455+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.750.25"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:02:41.455+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/28755ed9-1cab-49f1-92a0-df59f742534d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="28755ed9-1cab-49f1-92a0-df59f742534d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/2e7d06ca-9c30-46d5-8f4d-ed2565ad4327"/> + </subject> + <date value="2024-02-08T19:02:41+01:00"/> + <author> + <reference value="Practitioner/7977636e-4164-4508-93ca-edc596e0876a"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/f7a24eaf-b7fe-4588-8939-2bd6059df89c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/455da02b-088e-4bd0-8c21-250f777f1287"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/a15a5474-c3c7-44d2-b66e-3e123e7c556d"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/aefc67b0-e72e-49a7-b9c3-efec9eedcb84"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aefc67b0-e72e-49a7-b9c3-efec9eedcb84"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/2e7d06ca-9c30-46d5-8f4d-ed2565ad4327"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="2e7d06ca-9c30-46d5-8f4d-ed2565ad4327"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1960-09-11"/> + <address> + <type value="both"/> + <line value="Jägerstr. 844"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="844"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Jägerstr."/> + </extension> + </line> + <city value="Ost Sebastian"/> + <postalCode value="58868"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/f7a24eaf-b7fe-4588-8939-2bd6059df89c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f7a24eaf-b7fe-4588-8939-2bd6059df89c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="512348559"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-171-5912020"/> + </telecom> + <telecom> + <system value="email"/> + <value value="johannes.baganz@ladewig.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Carstens-Ring 82"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="82"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Carstens-Ring"/> + </extension> + </line> + <city value="Abramovicstadt"/> + <postalCode value="17526"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/455da02b-088e-4bd0-8c21-250f777f1287"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="455da02b-088e-4bd0-8c21-250f777f1287"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="55"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/2c535b7f-c8fb-463a-8ea8-78b04f51341f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="105530126"/> + </identifier> + <display value="BKK Werra‐Meissner"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/7977636e-4164-4508-93ca-edc596e0876a"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7977636e-4164-4508-93ca-edc596e0876a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="051629877"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/a15a5474-c3c7-44d2-b66e-3e123e7c556d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a15a5474-c3c7-44d2-b66e-3e123e7c556d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/aefc67b0-e72e-49a7-b9c3-efec9eedcb84"/> + </medicationReference> + <subject> + <reference value="Patient/2e7d06ca-9c30-46d5-8f4d-ed2565ad4327"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/7977636e-4164-4508-93ca-edc596e0876a"/> + </requester> + <insurance> + <reference value="Coverage/455da02b-088e-4bd0-8c21-250f777f1287"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/output.json new file mode 100644 index 00000000..b24e917d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "89383746-cd7d-488f-a826-ff3e53b2f3fa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.750.25" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "bff6522b-161d-4266-ab34-7c4922e0911a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/16172f3b-d0cd-4301-8787-a711a4f6b5d2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "16172f3b-d0cd-4301-8787-a711a4f6b5d2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "82134801-829a-4ce4-a954-cfbdb14bd871", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "512348559" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-171-5912020" + }, { + "system": "email", + "value": "johannes.baganz@ladewig.info" + } ], + "address": [ { + "type": "both", + "line": [ "Karl-Carstens-Ring 82" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "82" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Karl-Carstens-Ring" + } ] + } ], + "city": "Abramovicstadt", + "postalCode": "17526", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2d990c51-af9c-48bd-8a90-ba6326df4c7b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "051629877" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/output.xml new file mode 100644 index 00000000..8ea92b79 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_89383746/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="89383746-cd7d-488f-a826-ff3e53b2f3fa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.750.25"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="bff6522b-161d-4266-ab34-7c4922e0911a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/16172f3b-d0cd-4301-8787-a711a4f6b5d2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="16172f3b-d0cd-4301-8787-a711a4f6b5d2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="82134801-829a-4ce4-a954-cfbdb14bd871"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="512348559"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-171-5912020"/> + </telecom> + <telecom> + <system value="email"/> + <value value="johannes.baganz@ladewig.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Carstens-Ring 82"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="82"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Carstens-Ring"/> + </extension> + </line> + <city value="Abramovicstadt"/> + <postalCode value="17526"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2d990c51-af9c-48bd-8a90-ba6326df4c7b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="051629877"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/input.xml new file mode 100644 index 00000000..bbffbcea --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7c15a984-2fe1-4ade-b9e8-ffab2e767074"/> + <meta> + <lastUpdated value="2024-02-08T19:04:12.290+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.759.95"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:04:12.290+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/ac397912-b14c-4e5e-ba91-ec88c9b8955f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ac397912-b14c-4e5e-ba91-ec88c9b8955f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/e841adbf-9467-48db-8cc0-1b3f38d4e6e1"/> + </subject> + <date value="2024-02-08T19:04:12+01:00"/> + <author> + <reference value="Practitioner/447ff84a-92cf-4b10-a46f-47dc22d9ad1c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/67f11d8d-7d47-4525-bf5e-49ce76798a37"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/ce1eb878-f3f0-4cdb-8ff0-0a3397442293"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/0636312b-9c11-4f67-ad01-ffc1e4880339"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/7a4edde1-5a03-4b1c-8b27-33effeca6295"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7a4edde1-5a03-4b1c-8b27-33effeca6295"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/e841adbf-9467-48db-8cc0-1b3f38d4e6e1"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="e841adbf-9467-48db-8cc0-1b3f38d4e6e1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1974-12-11"/> + <address> + <type value="both"/> + <line value="Eidechsenweg 88"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="88"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Eidechsenweg"/> + </extension> + </line> + <city value="Lewinfeld"/> + <postalCode value="37893"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/67f11d8d-7d47-4525-bf5e-49ce76798a37"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="67f11d8d-7d47-4525-bf5e-49ce76798a37"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="729708749"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(05891) 9020530"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tyler.schultz@striezel.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Maria-Terwiel-Str. 45a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="45a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Maria-Terwiel-Str."/> + </extension> + </line> + <city value="Nabeinland"/> + <postalCode value="32786"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/ce1eb878-f3f0-4cdb-8ff0-0a3397442293"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="ce1eb878-f3f0-4cdb-8ff0-0a3397442293"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="60"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/3fe586e4-a51b-4f3b-8ddd-7a1ca4b7ca16"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101520329"/> + </identifier> + <display value="ESSO BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/447ff84a-92cf-4b10-a46f-47dc22d9ad1c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="447ff84a-92cf-4b10-a46f-47dc22d9ad1c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="763324597"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/0636312b-9c11-4f67-ad01-ffc1e4880339"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0636312b-9c11-4f67-ad01-ffc1e4880339"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7a4edde1-5a03-4b1c-8b27-33effeca6295"/> + </medicationReference> + <subject> + <reference value="Patient/e841adbf-9467-48db-8cc0-1b3f38d4e6e1"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/447ff84a-92cf-4b10-a46f-47dc22d9ad1c"/> + </requester> + <insurance> + <reference value="Coverage/ce1eb878-f3f0-4cdb-8ff0-0a3397442293"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/output.json new file mode 100644 index 00000000..db2bf454 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "8e4b0bfe-99a2-410c-8602-abc46d657060", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.759.95" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "4f17abd7-4b2c-4fc0-a17f-c098ef18ba7b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/678f3d4a-bbbb-4374-813e-f532665f0f70" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "678f3d4a-bbbb-4374-813e-f532665f0f70", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e0570b98-b683-4160-96a0-f39dde94bca1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "729708749" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(05891) 9020530" + }, { + "system": "email", + "value": "tyler.schultz@striezel.net" + } ], + "address": [ { + "type": "both", + "line": [ "Maria-Terwiel-Str. 45a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "45a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Maria-Terwiel-Str." + } ] + } ], + "city": "Nabeinland", + "postalCode": "32786", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ef371a4d-37c2-4c5f-9700-6acce9ed89d3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "763324597" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/output.xml new file mode 100644 index 00000000..07d1d289 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_8e4b0bfe/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8e4b0bfe-99a2-410c-8602-abc46d657060"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.759.95"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4f17abd7-4b2c-4fc0-a17f-c098ef18ba7b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/678f3d4a-bbbb-4374-813e-f532665f0f70"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="678f3d4a-bbbb-4374-813e-f532665f0f70"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e0570b98-b683-4160-96a0-f39dde94bca1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="729708749"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(05891) 9020530"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tyler.schultz@striezel.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Maria-Terwiel-Str. 45a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="45a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Maria-Terwiel-Str."/> + </extension> + </line> + <city value="Nabeinland"/> + <postalCode value="32786"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ef371a4d-37c2-4c5f-9700-6acce9ed89d3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="763324597"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/input.xml new file mode 100644 index 00000000..9222ab46 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="29aa5ba0-95a8-455a-b778-c4e99fb14f4e"/> + <meta> + <lastUpdated value="2024-02-08T19:02:46.424+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.751.22"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:02:46.424+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/99db91d9-a106-4d44-9055-dab900aedd77"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="99db91d9-a106-4d44-9055-dab900aedd77"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/166e1245-fad6-4fbe-a4af-9397b601b41c"/> + </subject> + <date value="2024-02-08T19:02:46+01:00"/> + <author> + <reference value="Practitioner/0b84603f-dea2-4d9e-be30-1b82e4eab8eb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/ea916fbd-94de-4b9a-aa59-742323cb5b8c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/36652b25-e431-4eae-8030-eb0982f22c59"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/97838e28-140b-45c4-96c8-d5282f578213"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/5088d1cf-46f8-4c89-b3c7-1fbda757aadb"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5088d1cf-46f8-4c89-b3c7-1fbda757aadb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/166e1245-fad6-4fbe-a4af-9397b601b41c"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="166e1245-fad6-4fbe-a4af-9397b601b41c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1987-11-10"/> + <address> + <type value="both"/> + <line value="Felderstr. 42"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="42"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Felderstr."/> + </extension> + </line> + <city value="Walzburg"/> + <postalCode value="85624"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/ea916fbd-94de-4b9a-aa59-742323cb5b8c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ea916fbd-94de-4b9a-aa59-742323cb5b8c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="506889695"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3700-72846964"/> + </telecom> + <telecom> + <system value="email"/> + <value value="sophie.schönfeld@nagel.com"/> + </telecom> + <address> + <type value="both"/> + <line value="In der Dasladen 30a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="30a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="In der Dasladen"/> + </extension> + </line> + <city value="Thustheim"/> + <postalCode value="47051"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/36652b25-e431-4eae-8030-eb0982f22c59"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="36652b25-e431-4eae-8030-eb0982f22c59"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/2086073c-e58b-4e52-a82e-002fa0aef975"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108633433"/> + </identifier> + <display value="BKK Kassana"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/0b84603f-dea2-4d9e-be30-1b82e4eab8eb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0b84603f-dea2-4d9e-be30-1b82e4eab8eb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="180212463"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/97838e28-140b-45c4-96c8-d5282f578213"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="97838e28-140b-45c4-96c8-d5282f578213"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5088d1cf-46f8-4c89-b3c7-1fbda757aadb"/> + </medicationReference> + <subject> + <reference value="Patient/166e1245-fad6-4fbe-a4af-9397b601b41c"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/0b84603f-dea2-4d9e-be30-1b82e4eab8eb"/> + </requester> + <insurance> + <reference value="Coverage/36652b25-e431-4eae-8030-eb0982f22c59"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/output.json new file mode 100644 index 00000000..c6dd4568 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "9102a310-f212-45fc-9b61-8dcf22155c7b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.751.22" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6cf75093-d0a5-4469-b36b-22daae54e38b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7cc57022-ff6d-44ca-a6a0-0e91a437ff87" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7cc57022-ff6d-44ca-a6a0-0e91a437ff87", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b00a22be-4d49-46eb-928f-1642fbfa1e61", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "506889695" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-3700-72846964" + }, { + "system": "email", + "value": "sophie.schönfeld@nagel.com" + } ], + "address": [ { + "type": "both", + "line": [ "In der Dasladen 30a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "30a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "In der Dasladen" + } ] + } ], + "city": "Thustheim", + "postalCode": "47051", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4a4a515f-5051-4c03-9da8-9faf42e40290", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "180212463" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/output.xml new file mode 100644 index 00000000..76ca7ee5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_9102a310/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9102a310-f212-45fc-9b61-8dcf22155c7b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.751.22"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6cf75093-d0a5-4469-b36b-22daae54e38b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7cc57022-ff6d-44ca-a6a0-0e91a437ff87"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7cc57022-ff6d-44ca-a6a0-0e91a437ff87"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b00a22be-4d49-46eb-928f-1642fbfa1e61"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="506889695"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3700-72846964"/> + </telecom> + <telecom> + <system value="email"/> + <value value="sophie.schönfeld@nagel.com"/> + </telecom> + <address> + <type value="both"/> + <line value="In der Dasladen 30a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="30a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="In der Dasladen"/> + </extension> + </line> + <city value="Thustheim"/> + <postalCode value="47051"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4a4a515f-5051-4c03-9da8-9faf42e40290"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="180212463"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/input.xml new file mode 100644 index 00000000..93f057e4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="10feb16e-8499-4b4b-bbd3-354242c57e36"/> + <meta> + <lastUpdated value="2024-02-08T19:04:29.248+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.760.92"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:04:29.248+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/8fef5be4-59e2-4aa7-93df-bc2bfbdf6741"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8fef5be4-59e2-4aa7-93df-bc2bfbdf6741"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/6eb1209c-247f-4ac0-a0a0-05646acbf05e"/> + </subject> + <date value="2024-02-08T19:04:29+01:00"/> + <author> + <reference value="Practitioner/f90378fb-00f4-411d-9784-7eb409b49135"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5c832b6d-d75f-4d91-aea3-4de9775ad304"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/5964ab86-f941-47da-a4a4-3f81d6fd2d79"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/3d87138e-12c0-4fc3-84e5-30b6f771a276"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/a6c17c6c-f17b-4c17-bd92-9db6b49a9848"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a6c17c6c-f17b-4c17-bd92-9db6b49a9848"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/6eb1209c-247f-4ac0-a0a0-05646acbf05e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="6eb1209c-247f-4ac0-a0a0-05646acbf05e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1973-05-04"/> + <address> + <type value="both"/> + <line value="Werftstr. 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Werftstr."/> + </extension> + </line> + <city value="Schön Peter"/> + <postalCode value="04784"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/5c832b6d-d75f-4d91-aea3-4de9775ad304"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5c832b6d-d75f-4d91-aea3-4de9775ad304"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="470426554"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0379) 822340692"/> + </telecom> + <telecom> + <system value="email"/> + <value value="fabian.bienasch@just.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Weizkamp 877"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="877"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weizkamp"/> + </extension> + </line> + <city value="Groß Ruben"/> + <postalCode value="68177"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/5964ab86-f941-47da-a4a4-3f81d6fd2d79"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="5964ab86-f941-47da-a4a4-3f81d6fd2d79"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="48"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/443cea35-9f8f-404e-9f20-c9ab49dd067f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101560000"/> + </identifier> + <display value="DAK‐Gesundheit"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/f90378fb-00f4-411d-9784-7eb409b49135"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f90378fb-00f4-411d-9784-7eb409b49135"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="439856521"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/3d87138e-12c0-4fc3-84e5-30b6f771a276"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3d87138e-12c0-4fc3-84e5-30b6f771a276"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a6c17c6c-f17b-4c17-bd92-9db6b49a9848"/> + </medicationReference> + <subject> + <reference value="Patient/6eb1209c-247f-4ac0-a0a0-05646acbf05e"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/f90378fb-00f4-411d-9784-7eb409b49135"/> + </requester> + <insurance> + <reference value="Coverage/5964ab86-f941-47da-a4a4-3f81d6fd2d79"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/output.json new file mode 100644 index 00000000..b11ba35a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "94ddf2c1-2b99-41e0-9ceb-8468f995c336", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.760.92" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "346ee2ec-0c6c-46cf-a926-1786a547e421", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/05544bb4-3e9b-43c3-b578-fa1831106a11" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "05544bb4-3e9b-43c3-b578-fa1831106a11", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6a4ffc95-532c-4e14-92ac-db6769cce435", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "470426554" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0379) 822340692" + }, { + "system": "email", + "value": "fabian.bienasch@just.org" + } ], + "address": [ { + "type": "both", + "line": [ "Weizkamp 877" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "877" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Weizkamp" + } ] + } ], + "city": "Groß Ruben", + "postalCode": "68177", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "cf184f46-d4d1-4111-80b1-07a98f3b2e01", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "439856521" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/output.xml new file mode 100644 index 00000000..f7b2e892 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_94ddf2c1/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="94ddf2c1-2b99-41e0-9ceb-8468f995c336"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.760.92"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="346ee2ec-0c6c-46cf-a926-1786a547e421"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/05544bb4-3e9b-43c3-b578-fa1831106a11"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="05544bb4-3e9b-43c3-b578-fa1831106a11"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6a4ffc95-532c-4e14-92ac-db6769cce435"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="470426554"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0379) 822340692"/> + </telecom> + <telecom> + <system value="email"/> + <value value="fabian.bienasch@just.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Weizkamp 877"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="877"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weizkamp"/> + </extension> + </line> + <city value="Groß Ruben"/> + <postalCode value="68177"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cf184f46-d4d1-4111-80b1-07a98f3b2e01"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="439856521"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/input.xml new file mode 100644 index 00000000..b7f324cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="12931066-598a-4106-a5db-52a3b960f4fc"/> + <meta> + <lastUpdated value="2024-02-08T19:06:30.109+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.771.59"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:06:30.109+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/f71f620c-66c1-421b-8ac9-a26e06783765"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f71f620c-66c1-421b-8ac9-a26e06783765"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/0e3dbf2e-460c-4c37-8c12-a0570934a15e"/> + </subject> + <date value="2024-02-08T19:06:30+01:00"/> + <author> + <reference value="Practitioner/0f6d2336-9e7f-40cf-81ff-1b223434404c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/f04a7101-7d3b-4852-bd53-d2869ec2a33d"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/edd0a842-7b0a-4c9e-b9a6-c23ef1fbb8fe"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/f6cdbc10-132d-4356-8bcd-358f8ed2e794"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/69a76552-f201-4bd0-832f-8d6519ef9783"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="69a76552-f201-4bd0-832f-8d6519ef9783"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/0e3dbf2e-460c-4c37-8c12-a0570934a15e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="0e3dbf2e-460c-4c37-8c12-a0570934a15e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1966-11-12"/> + <address> + <type value="both"/> + <line value="Unterölbach 256"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="256"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Unterölbach"/> + </extension> + </line> + <city value="Ost Levinfeld"/> + <postalCode value="76451"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/f04a7101-7d3b-4852-bd53-d2869ec2a33d"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f04a7101-7d3b-4852-bd53-d2869ec2a33d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="886581532"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0713) 038011891"/> + </telecom> + <telecom> + <system value="email"/> + <value value="kalle.finke@grothkopp.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Voigtslach 329"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="329"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Voigtslach"/> + </extension> + </line> + <city value="Dennisheim"/> + <postalCode value="94140"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/edd0a842-7b0a-4c9e-b9a6-c23ef1fbb8fe"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="edd0a842-7b0a-4c9e-b9a6-c23ef1fbb8fe"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="50"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/232608e2-dc26-4c80-8bed-0d22cf8a3eeb"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104424794"/> + </identifier> + <display value="BKK DEMAG KRAUSS‐MAFFEI"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/0f6d2336-9e7f-40cf-81ff-1b223434404c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0f6d2336-9e7f-40cf-81ff-1b223434404c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="059579535"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/f6cdbc10-132d-4356-8bcd-358f8ed2e794"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f6cdbc10-132d-4356-8bcd-358f8ed2e794"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/69a76552-f201-4bd0-832f-8d6519ef9783"/> + </medicationReference> + <subject> + <reference value="Patient/0e3dbf2e-460c-4c37-8c12-a0570934a15e"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/0f6d2336-9e7f-40cf-81ff-1b223434404c"/> + </requester> + <insurance> + <reference value="Coverage/edd0a842-7b0a-4c9e-b9a6-c23ef1fbb8fe"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/output.json new file mode 100644 index 00000000..540d1799 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "968173c9-e3d8-439f-92c2-1e716bafc2a7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.771.59" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7f656ffa-ea89-4c20-a705-f989bbf644ad", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/6c92a863-de6d-468d-a046-81a527eb6e17" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6c92a863-de6d-468d-a046-81a527eb6e17", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "76f199c0-3e9c-44aa-a3a3-357a5ab7d7e7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "886581532" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0713) 038011891" + }, { + "system": "email", + "value": "kalle.finke@grothkopp.name" + } ], + "address": [ { + "type": "both", + "line": [ "Voigtslach 329" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "329" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Voigtslach" + } ] + } ], + "city": "Dennisheim", + "postalCode": "94140", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "46c89078-d117-444e-a6dd-5c5502fca366", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "059579535" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/output.xml new file mode 100644 index 00000000..a65e6dd6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_968173c9/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="968173c9-e3d8-439f-92c2-1e716bafc2a7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.771.59"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7f656ffa-ea89-4c20-a705-f989bbf644ad"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6c92a863-de6d-468d-a046-81a527eb6e17"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6c92a863-de6d-468d-a046-81a527eb6e17"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="76f199c0-3e9c-44aa-a3a3-357a5ab7d7e7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="886581532"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0713) 038011891"/> + </telecom> + <telecom> + <system value="email"/> + <value value="kalle.finke@grothkopp.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Voigtslach 329"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="329"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Voigtslach"/> + </extension> + </line> + <city value="Dennisheim"/> + <postalCode value="94140"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="46c89078-d117-444e-a6dd-5c5502fca366"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="059579535"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/input.xml new file mode 100644 index 00000000..2b3c1a9f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="f9c4ff65-a40c-4f05-b3f8-7e5c846add7d"/> + <meta> + <lastUpdated value="2024-02-08T19:13:50.574+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.525.73"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:13:50.574+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/a48037d8-a138-47fa-9537-e0eee623f21e"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a48037d8-a138-47fa-9537-e0eee623f21e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/a45926b5-f444-486c-bf5b-694f2e8d2ced"/> + </subject> + <date value="2024-02-08T19:13:50+01:00"/> + <author> + <reference value="Practitioner/6305b2ce-75b5-4589-8a17-f2b621449a2b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/62ca9c57-bac2-418b-8449-56116ca1f3bb"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/987f0453-b121-4067-91d0-26252954aed5"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/f1b38b26-ee45-492b-9b8e-1113b948d06b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/f5b4d81a-1800-4c6c-8771-3e39d16c2c30"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f5b4d81a-1800-4c6c-8771-3e39d16c2c30"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/a45926b5-f444-486c-bf5b-694f2e8d2ced"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="a45926b5-f444-486c-bf5b-694f2e8d2ced"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1969-03-29"/> + <address> + <type value="both"/> + <line value="Lortzingstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lortzingstr."/> + </extension> + </line> + <city value="West Karloscheid"/> + <postalCode value="77428"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/62ca9c57-bac2-418b-8449-56116ca1f3bb"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="62ca9c57-bac2-418b-8449-56116ca1f3bb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="932596891"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0419) 301209056"/> + </telecom> + <telecom> + <system value="email"/> + <value value="soraya.rau@kron.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Erich-Heckel-Str. 25c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="25c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Erich-Heckel-Str."/> + </extension> + </line> + <city value="Bergerscheid"/> + <postalCode value="64326"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/987f0453-b121-4067-91d0-26252954aed5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="987f0453-b121-4067-91d0-26252954aed5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="71"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/3499c22a-410c-488c-9ef1-71c2e2c7d895"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140288"/> + </identifier> + <display value="Debeka"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/6305b2ce-75b5-4589-8a17-f2b621449a2b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6305b2ce-75b5-4589-8a17-f2b621449a2b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="411539329"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/f1b38b26-ee45-492b-9b8e-1113b948d06b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f1b38b26-ee45-492b-9b8e-1113b948d06b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f5b4d81a-1800-4c6c-8771-3e39d16c2c30"/> + </medicationReference> + <subject> + <reference value="Patient/a45926b5-f444-486c-bf5b-694f2e8d2ced"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/6305b2ce-75b5-4589-8a17-f2b621449a2b"/> + </requester> + <insurance> + <reference value="Coverage/987f0453-b121-4067-91d0-26252954aed5"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/output.json new file mode 100644 index 00000000..a0b3599d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "a0b1a2cd-960c-4cb7-8b2c-fe417e302b0a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.525.73" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "2968ebf2-8f6b-44d0-b710-8fa56d995d95", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ee02ccf6-f11e-4348-a08c-40d2953aebb2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ee02ccf6-f11e-4348-a08c-40d2953aebb2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "50188a79-f59e-47b8-a674-7132fcfaa3a6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "932596891" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0419) 301209056" + }, { + "system": "email", + "value": "soraya.rau@kron.de" + } ], + "address": [ { + "type": "both", + "line": [ "Erich-Heckel-Str. 25c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "25c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Erich-Heckel-Str." + } ] + } ], + "city": "Bergerscheid", + "postalCode": "64326", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "864d61a2-b7ad-447b-bd28-db9d27716611", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "411539329" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/output.xml new file mode 100644 index 00000000..43fb93ba --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a0b1a2cd/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a0b1a2cd-960c-4cb7-8b2c-fe417e302b0a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.525.73"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2968ebf2-8f6b-44d0-b710-8fa56d995d95"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ee02ccf6-f11e-4348-a08c-40d2953aebb2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ee02ccf6-f11e-4348-a08c-40d2953aebb2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="50188a79-f59e-47b8-a674-7132fcfaa3a6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="932596891"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0419) 301209056"/> + </telecom> + <telecom> + <system value="email"/> + <value value="soraya.rau@kron.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Erich-Heckel-Str. 25c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="25c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Erich-Heckel-Str."/> + </extension> + </line> + <city value="Bergerscheid"/> + <postalCode value="64326"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="864d61a2-b7ad-447b-bd28-db9d27716611"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="411539329"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/input.xml new file mode 100644 index 00000000..68987e4e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="230dc009-fe73-47bb-9d19-5e48449a4ba8"/> + <meta> + <lastUpdated value="2024-02-08T19:20:49.645+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.555.80"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:20:49.645+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/5b8c7a2b-2049-4b65-ac8b-a5f5559e99af"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5b8c7a2b-2049-4b65-ac8b-a5f5559e99af"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/f9667017-39e2-4062-8ce4-6429bbf68383"/> + </subject> + <date value="2024-02-08T19:20:49+01:00"/> + <author> + <reference value="Practitioner/394ca825-9f44-4784-898b-78f5e58689ed"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d45562ec-94e2-40ab-8156-c95bbc8f2030"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/2299b7ad-e1f9-41b6-b2cc-b1d0830a8b7f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/61191280-da3e-4342-bee9-429aa47cb42c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/e0761a89-bb4d-44f8-bef8-a8eec7122c5a"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e0761a89-bb4d-44f8-bef8-a8eec7122c5a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/f9667017-39e2-4062-8ce4-6429bbf68383"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="f9667017-39e2-4062-8ce4-6429bbf68383"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1980-04-02"/> + <address> + <type value="both"/> + <line value="Am Märchen 36"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="36"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Märchen"/> + </extension> + </line> + <city value="Bad Summer"/> + <postalCode value="15359"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/d45562ec-94e2-40ab-8156-c95bbc8f2030"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d45562ec-94e2-40ab-8156-c95bbc8f2030"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="496255531"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-197-7069529"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tara.pollmächer@xn--dck-hoa.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Augustastr. 27"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Augustastr."/> + </extension> + </line> + <city value="Logandorf"/> + <postalCode value="84236"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/2299b7ad-e1f9-41b6-b2cc-b1d0830a8b7f"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="2299b7ad-e1f9-41b6-b2cc-b1d0830a8b7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/85433d36-dc26-4eac-8c27-87c845e2c1be"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140437"/> + </identifier> + <display value="HALLESCHE"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/394ca825-9f44-4784-898b-78f5e58689ed"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="394ca825-9f44-4784-898b-78f5e58689ed"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="368352769"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/61191280-da3e-4342-bee9-429aa47cb42c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="61191280-da3e-4342-bee9-429aa47cb42c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e0761a89-bb4d-44f8-bef8-a8eec7122c5a"/> + </medicationReference> + <subject> + <reference value="Patient/f9667017-39e2-4062-8ce4-6429bbf68383"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/394ca825-9f44-4784-898b-78f5e58689ed"/> + </requester> + <insurance> + <reference value="Coverage/2299b7ad-e1f9-41b6-b2cc-b1d0830a8b7f"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/output.json new file mode 100644 index 00000000..01ada568 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "a4f05dcd-c8d2-4af4-a09f-48b304c14830", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.555.80" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3d9b9db0-faf1-43c1-9d5d-0f8c303220a0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ba6eb23d-efed-4d4c-aa1d-c998ae6c8d31" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ba6eb23d-efed-4d4c-aa1d-c998ae6c8d31", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "872a2c77-a0a6-4cd7-908a-3c79ced91e5d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "496255531" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-197-7069529" + }, { + "system": "email", + "value": "tara.pollmächer@xn--dck-hoa.info" + } ], + "address": [ { + "type": "both", + "line": [ "Augustastr. 27" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "27" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Augustastr." + } ] + } ], + "city": "Logandorf", + "postalCode": "84236", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f91d6206-9d87-4330-871a-77808b55a6a6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "368352769" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/output.xml new file mode 100644 index 00000000..d4688f5a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_a4f05dcd/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a4f05dcd-c8d2-4af4-a09f-48b304c14830"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.555.80"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3d9b9db0-faf1-43c1-9d5d-0f8c303220a0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ba6eb23d-efed-4d4c-aa1d-c998ae6c8d31"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ba6eb23d-efed-4d4c-aa1d-c998ae6c8d31"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="872a2c77-a0a6-4cd7-908a-3c79ced91e5d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="496255531"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-197-7069529"/> + </telecom> + <telecom> + <system value="email"/> + <value value="tara.pollmächer@xn--dck-hoa.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Augustastr. 27"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Augustastr."/> + </extension> + </line> + <city value="Logandorf"/> + <postalCode value="84236"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f91d6206-9d87-4330-871a-77808b55a6a6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="368352769"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/input.xml new file mode 100644 index 00000000..bd971c74 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c7ac3a7c-dfe1-4789-b273-cbb39820d1b9"/> + <meta> + <lastUpdated value="2024-02-08T19:20:52.097+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.556.77"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:20:52.097+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/5ea5d115-cc0d-4fc8-85d7-33ebde8586b4"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5ea5d115-cc0d-4fc8-85d7-33ebde8586b4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/cc493f73-2667-4f93-b6fe-00fb281c520e"/> + </subject> + <date value="2024-02-08T19:20:52+01:00"/> + <author> + <reference value="Practitioner/5c573e79-dcee-491e-80db-2d3b0c9faaef"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/1ef93fb3-d51b-4b9d-a08f-75d8ba39a8cc"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/bb1aef69-f832-4448-b75c-7d8e27415bea"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/4e4793aa-1d2a-4a78-9587-247a7f87fe3f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/e83c5df3-bc8a-4c76-8608-99873d4d7300"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e83c5df3-bc8a-4c76-8608-99873d4d7300"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="60453038"/> + </coding> + <text value="Becameat"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/cc493f73-2667-4f93-b6fe-00fb281c520e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="cc493f73-2667-4f93-b6fe-00fb281c520e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110488614"/> + </identifier> + <name> + <use value="official"/> + <family value="Hütter"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hütter"/> + </extension> + </family> + <given value="Leonie"/> + </name> + <birthDate value="2000-09-02"/> + <address> + <type value="both"/> + <line value="Rotdornweg 64"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="64"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Rotdornweg"/> + </extension> + </line> + <city value="Schön Zoé"/> + <postalCode value="72099"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/1ef93fb3-d51b-4b9d-a08f-75d8ba39a8cc"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1ef93fb3-d51b-4b9d-a08f-75d8ba39a8cc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="604808395"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0884) 756294235"/> + </telecom> + <telecom> + <system value="email"/> + <value value="elina.dilla@hansen.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Ahrstr. 27c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ahrstr."/> + </extension> + </line> + <city value="Baranscheid"/> + <postalCode value="59779"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/bb1aef69-f832-4448-b75c-7d8e27415bea"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="bb1aef69-f832-4448-b75c-7d8e27415bea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="20"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/48460345-0e16-44f8-b00c-4e8b1dbd14b1"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="105330168"/> + </identifier> + <display value="Salus BKK ‐ Die Gutfühlversicherung"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/5c573e79-dcee-491e-80db-2d3b0c9faaef"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="5c573e79-dcee-491e-80db-2d3b0c9faaef"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="177086960"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/4e4793aa-1d2a-4a78-9587-247a7f87fe3f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4e4793aa-1d2a-4a78-9587-247a7f87fe3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e83c5df3-bc8a-4c76-8608-99873d4d7300"/> + </medicationReference> + <subject> + <reference value="Patient/cc493f73-2667-4f93-b6fe-00fb281c520e"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/5c573e79-dcee-491e-80db-2d3b0c9faaef"/> + </requester> + <insurance> + <reference value="Coverage/bb1aef69-f832-4448-b75c-7d8e27415bea"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/output.json new file mode 100644 index 00000000..d66e8e26 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "ad7148f1-1538-4ecb-94cd-6a4d4b36c789", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.556.77" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0011451f-0bd2-42e9-bdba-9fcbf93ac9fb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/79b98e79-9ef1-4411-a26d-1c03a3649a0c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "79b98e79-9ef1-4411-a26d-1c03a3649a0c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "60453038" + } ], + "text": "Becameat" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "edf8e3d5-ca15-414a-9436-18518c5d0a69", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "604808395" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0884) 756294235" + }, { + "system": "email", + "value": "elina.dilla@hansen.org" + } ], + "address": [ { + "type": "both", + "line": [ "Ahrstr. 27c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "27c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Ahrstr." + } ] + } ], + "city": "Baranscheid", + "postalCode": "59779", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6ae37f3b-aff3-40e4-ac46-28e929dbeb87", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "177086960" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/output.xml new file mode 100644 index 00000000..f00cc7b4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ad7148f1/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ad7148f1-1538-4ecb-94cd-6a4d4b36c789"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.556.77"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0011451f-0bd2-42e9-bdba-9fcbf93ac9fb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/79b98e79-9ef1-4411-a26d-1c03a3649a0c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="79b98e79-9ef1-4411-a26d-1c03a3649a0c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="60453038"/> + </coding> + <text value="Becameat"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="edf8e3d5-ca15-414a-9436-18518c5d0a69"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="604808395"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0884) 756294235"/> + </telecom> + <telecom> + <system value="email"/> + <value value="elina.dilla@hansen.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Ahrstr. 27c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ahrstr."/> + </extension> + </line> + <city value="Baranscheid"/> + <postalCode value="59779"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6ae37f3b-aff3-40e4-ac46-28e929dbeb87"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="177086960"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/input.xml new file mode 100644 index 00000000..8570be09 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/input.xml @@ -0,0 +1,403 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="e6706910-8905-47d4-94a3-dedb882d04fe"/> + <meta> + <lastUpdated value="2024-02-08T19:10:25.809+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.784.20"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:10:25.809+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/932dea31-a1c0-4106-8732-349fe167bf1d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="932dea31-a1c0-4106-8732-349fe167bf1d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/bde1731b-4dba-4dd5-91f9-175b0e9a51af"/> + </subject> + <date value="2024-02-08T19:10:25+01:00"/> + <author> + <reference value="Practitioner/c7c1ae8e-a4db-4853-a90b-6d88a436ba47"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/a522a15f-9e69-45cf-b063-b8892127bfd4"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/e1e56006-c327-4f48-b1d9-9b19317ec540"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/731969bb-5cb6-4dd1-b57f-b47b9f757f25"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/6f068ff5-f3e7-470f-9899-91f804ce3944"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6f068ff5-f3e7-470f-9899-91f804ce3944"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="42938335"/> + </coding> + <text value="Fexvomilzol"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/bde1731b-4dba-4dd5-91f9-175b0e9a51af"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="bde1731b-4dba-4dd5-91f9-175b0e9a51af"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1959-09-18"/> + <address> + <type value="both"/> + <line value="Alsenstr. 47b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="47b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Alsenstr."/> + </extension> + </line> + <city value="Neu Ceciliaburg"/> + <postalCode value="78856"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/a522a15f-9e69-45cf-b063-b8892127bfd4"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a522a15f-9e69-45cf-b063-b8892127bfd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="839368350"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-7222-51775715"/> + </telecom> + <telecom> + <system value="email"/> + <value value="josie.malkus@jaros.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Pfarrer-Jekel-Str. 47a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="47a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pfarrer-Jekel-Str."/> + </extension> + </line> + <city value="Klein Kimberlystadt"/> + <postalCode value="17592"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/e1e56006-c327-4f48-b1d9-9b19317ec540"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e1e56006-c327-4f48-b1d9-9b19317ec540"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="46"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/b5766bbf-61f5-4849-bb74-578740a0c15b"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="106020600"/> + </identifier> + <display value="BKK MEM"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/c7c1ae8e-a4db-4853-a90b-6d88a436ba47"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c7c1ae8e-a4db-4853-a90b-6d88a436ba47"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="792402920"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/731969bb-5cb6-4dd1-b57f-b47b9f757f25"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="731969bb-5cb6-4dd1-b57f-b47b9f757f25"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-02-08"/> + <end value="2024-05-08"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:2f86b77d-8e11-42ac-89fe-5a1d39775378"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6f068ff5-f3e7-470f-9899-91f804ce3944"/> + </medicationReference> + <subject> + <reference value="Patient/bde1731b-4dba-4dd5-91f9-175b0e9a51af"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/c7c1ae8e-a4db-4853-a90b-6d88a436ba47"/> + </requester> + <insurance> + <reference value="Coverage/e1e56006-c327-4f48-b1d9-9b19317ec540"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/output.json new file mode 100644 index 00000000..b274f749 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/output.json @@ -0,0 +1,234 @@ +{ + "resourceType": "Parameters", + "id": "aedad2dd-d8db-47f5-acd8-ce39ea9153be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.784.20" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "493415e1-ad06-4763-b3e8-cdafb2af8c73", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-02-08", + "end": "2024-05-08" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:2f86b77d-8e11-42ac-89fe-5a1d39775378" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/dfb981c1-fe46-4996-bbbd-3b7d33a14c58" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "dfb981c1-fe46-4996-bbbd-3b7d33a14c58", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "42938335" + } ], + "text": "Fexvomilzol" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "67cda6ff-0258-48e9-a5d4-2655e6700fca", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "839368350" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-7222-51775715" + }, { + "system": "email", + "value": "josie.malkus@jaros.net" + } ], + "address": [ { + "type": "both", + "line": [ "Pfarrer-Jekel-Str. 47a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "47a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Pfarrer-Jekel-Str." + } ] + } ], + "city": "Klein Kimberlystadt", + "postalCode": "17592", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "de45e050-700e-4131-996c-c4b167de71d9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "792402920" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/output.xml new file mode 100644 index 00000000..ed7c09e0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_aedad2dd/output.xml @@ -0,0 +1,237 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="aedad2dd-d8db-47f5-acd8-ce39ea9153be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.784.20"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="493415e1-ad06-4763-b3e8-cdafb2af8c73"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-02-08"/> + <end value="2024-05-08"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:2f86b77d-8e11-42ac-89fe-5a1d39775378"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/dfb981c1-fe46-4996-bbbd-3b7d33a14c58"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="dfb981c1-fe46-4996-bbbd-3b7d33a14c58"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="42938335"/> + </coding> + <text value="Fexvomilzol"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="67cda6ff-0258-48e9-a5d4-2655e6700fca"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="839368350"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-7222-51775715"/> + </telecom> + <telecom> + <system value="email"/> + <value value="josie.malkus@jaros.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Pfarrer-Jekel-Str. 47a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="47a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pfarrer-Jekel-Str."/> + </extension> + </line> + <city value="Klein Kimberlystadt"/> + <postalCode value="17592"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="de45e050-700e-4131-996c-c4b167de71d9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="792402920"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/input.xml new file mode 100644 index 00000000..f938fe39 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="35469770-91ff-4243-be92-4793ec42fe75"/> + <meta> + <lastUpdated value="2024-02-08T19:03:28.958+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.754.13"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:28.958+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/b42e377c-a3d5-4c8d-81ed-45e54bea1c2d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="b42e377c-a3d5-4c8d-81ed-45e54bea1c2d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/cb233a39-6063-4b43-ab3a-528014b09051"/> + </subject> + <date value="2024-02-08T19:03:28+01:00"/> + <author> + <reference value="Practitioner/f61eb898-d68c-4b10-9847-27fbdac9f716"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/39c25ee9-792c-4ab4-b78b-bea5d34c6d55"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/88451434-747f-49c1-bafe-b3147b0df1f7"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/890e4caa-0bff-47b0-9e09-e86ac39b10c2"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/f08c8016-26d3-4201-9212-b49cb346a0f7"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f08c8016-26d3-4201-9212-b49cb346a0f7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/cb233a39-6063-4b43-ab3a-528014b09051"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="cb233a39-6063-4b43-ab3a-528014b09051"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1963-04-06"/> + <address> + <type value="both"/> + <line value="Händelstr. 886"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="886"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Händelstr."/> + </extension> + </line> + <city value="Süd Jarnestadt"/> + <postalCode value="57898"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/39c25ee9-792c-4ab4-b78b-bea5d34c6d55"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="39c25ee9-792c-4ab4-b78b-bea5d34c6d55"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="469861049"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-868-7658755"/> + </telecom> + <telecom> + <system value="email"/> + <value value="milo.roggatz@kette.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Ilmstr. 86"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="86"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ilmstr."/> + </extension> + </line> + <city value="Klein Jack"/> + <postalCode value="92689"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/88451434-747f-49c1-bafe-b3147b0df1f7"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="88451434-747f-49c1-bafe-b3147b0df1f7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/717fe0aa-bada-4c15-9eab-1385fad69455"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="106432038"/> + </identifier> + <display value="BKK VITAL"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/f61eb898-d68c-4b10-9847-27fbdac9f716"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f61eb898-d68c-4b10-9847-27fbdac9f716"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="793794444"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/890e4caa-0bff-47b0-9e09-e86ac39b10c2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="890e4caa-0bff-47b0-9e09-e86ac39b10c2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f08c8016-26d3-4201-9212-b49cb346a0f7"/> + </medicationReference> + <subject> + <reference value="Patient/cb233a39-6063-4b43-ab3a-528014b09051"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/f61eb898-d68c-4b10-9847-27fbdac9f716"/> + </requester> + <insurance> + <reference value="Coverage/88451434-747f-49c1-bafe-b3147b0df1f7"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/output.json new file mode 100644 index 00000000..40b05546 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "b1146a3f-5b7b-4b0b-a6d8-32245ea54c14", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.754.13" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "16a36888-bf66-4324-8c6c-e9f1201f0250", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/433e2d4e-5f34-4e70-8dc1-99748c3290d1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "433e2d4e-5f34-4e70-8dc1-99748c3290d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f5b1dc55-ce05-4466-9fc6-15570b9b5d2f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "469861049" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-868-7658755" + }, { + "system": "email", + "value": "milo.roggatz@kette.de" + } ], + "address": [ { + "type": "both", + "line": [ "Ilmstr. 86" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "86" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Ilmstr." + } ] + } ], + "city": "Klein Jack", + "postalCode": "92689", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "52c526f8-7e8f-4fd4-ba9f-512feaa81364", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "793794444" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/output.xml new file mode 100644 index 00000000..7e03235f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_b1146a3f/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b1146a3f-5b7b-4b0b-a6d8-32245ea54c14"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.754.13"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="16a36888-bf66-4324-8c6c-e9f1201f0250"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/433e2d4e-5f34-4e70-8dc1-99748c3290d1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="433e2d4e-5f34-4e70-8dc1-99748c3290d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f5b1dc55-ce05-4466-9fc6-15570b9b5d2f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="469861049"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-868-7658755"/> + </telecom> + <telecom> + <system value="email"/> + <value value="milo.roggatz@kette.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Ilmstr. 86"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="86"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ilmstr."/> + </extension> + </line> + <city value="Klein Jack"/> + <postalCode value="92689"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="52c526f8-7e8f-4fd4-ba9f-512feaa81364"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="793794444"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/input.xml new file mode 100644 index 00000000..5be28349 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="f731f36c-30fa-4fe2-8f67-f29b43a7ccac"/> + <meta> + <lastUpdated value="2024-02-08T19:01:43.127+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.745.40"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:01:43.127+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/f14dd574-14ed-44c9-954b-577281dc9e6f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f14dd574-14ed-44c9-954b-577281dc9e6f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/d0b67223-1bb2-4e3a-baf8-e368964a8f64"/> + </subject> + <date value="2024-02-08T19:01:43+01:00"/> + <author> + <reference value="Practitioner/39adb1f3-d339-48f5-a631-45f393d26c95"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/da382d45-274b-42bd-b6b0-7a1388313017"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/ac593a43-9ad8-411b-928e-8d8b93ef26ec"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/e7e82222-bf9e-4a89-bddb-7e7377e0a7f5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/a69d5e37-404d-4491-b487-1eaf0def0842"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a69d5e37-404d-4491-b487-1eaf0def0842"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/d0b67223-1bb2-4e3a-baf8-e368964a8f64"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="d0b67223-1bb2-4e3a-baf8-e368964a8f64"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1998-01-07"/> + <address> + <type value="both"/> + <line value="Steinstr. 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Steinstr."/> + </extension> + </line> + <city value="Ost Elias"/> + <postalCode value="75746"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/da382d45-274b-42bd-b6b0-7a1388313017"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="da382d45-274b-42bd-b6b0-7a1388313017"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="517599493"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8307-82061900"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ylvi.dauer@grossheim.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Schopenhauerstr. 11c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="11c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schopenhauerstr."/> + </extension> + </line> + <city value="Groß Lucian"/> + <postalCode value="71897"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/ac593a43-9ad8-411b-928e-8d8b93ef26ec"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="ac593a43-9ad8-411b-928e-8d8b93ef26ec"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="71"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/77b31556-b8e0-45c8-a351-fe415ceec4cf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="103724272"/> + </identifier> + <display value="BKK Gildemeister SSeidensticker"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/39adb1f3-d339-48f5-a631-45f393d26c95"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="39adb1f3-d339-48f5-a631-45f393d26c95"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="247511094"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/e7e82222-bf9e-4a89-bddb-7e7377e0a7f5"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e7e82222-bf9e-4a89-bddb-7e7377e0a7f5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a69d5e37-404d-4491-b487-1eaf0def0842"/> + </medicationReference> + <subject> + <reference value="Patient/d0b67223-1bb2-4e3a-baf8-e368964a8f64"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/39adb1f3-d339-48f5-a631-45f393d26c95"/> + </requester> + <insurance> + <reference value="Coverage/ac593a43-9ad8-411b-928e-8d8b93ef26ec"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/output.json new file mode 100644 index 00000000..b4cf7737 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "bcba7c06-44a6-4eb8-a379-fc111fde58b7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.745.40" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6a0e635b-64ad-4969-93f5-fe994385582a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/8f62bfd7-b261-4a5f-863c-3f29b9fec76a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8f62bfd7-b261-4a5f-863c-3f29b9fec76a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "59478707-1d4f-42a6-a25d-e5feaac40f6b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "517599493" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-8307-82061900" + }, { + "system": "email", + "value": "ylvi.dauer@grossheim.de" + } ], + "address": [ { + "type": "both", + "line": [ "Schopenhauerstr. 11c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "11c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Schopenhauerstr." + } ] + } ], + "city": "Groß Lucian", + "postalCode": "71897", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b4fab319-0f45-4804-b3dd-bf4a78907267", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "247511094" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/output.xml new file mode 100644 index 00000000..661eebb7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_bcba7c06/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bcba7c06-44a6-4eb8-a379-fc111fde58b7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.745.40"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6a0e635b-64ad-4969-93f5-fe994385582a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8f62bfd7-b261-4a5f-863c-3f29b9fec76a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8f62bfd7-b261-4a5f-863c-3f29b9fec76a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="59478707-1d4f-42a6-a25d-e5feaac40f6b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="517599493"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8307-82061900"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ylvi.dauer@grossheim.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Schopenhauerstr. 11c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="11c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schopenhauerstr."/> + </extension> + </line> + <city value="Groß Lucian"/> + <postalCode value="71897"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b4fab319-0f45-4804-b3dd-bf4a78907267"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="247511094"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/input.xml new file mode 100644 index 00000000..cffaa178 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="1be382e5-6d0f-4ac2-8b55-0193d68afe97"/> + <meta> + <lastUpdated value="2024-02-08T19:07:30.537+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.687.86"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:07:30.537+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/467d5064-f053-4007-9182-4e07b4558c5f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="467d5064-f053-4007-9182-4e07b4558c5f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/3c4a595c-4b7e-4656-9e3c-51f72e7966fe"/> + </subject> + <date value="2024-02-08T19:07:30+01:00"/> + <author> + <reference value="Practitioner/56153ecc-2e19-4b24-8911-2ce5d572b133"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/17a112d9-b27d-4c98-b8b6-62f8172ead9f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/12446a1b-0c43-4aef-a02b-6ab59150d7c3"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/dfb4411c-1704-43cb-acc0-ba312c2fb5f7"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/f9adf34b-54b3-4136-8227-bbb52adb4a81"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f9adf34b-54b3-4136-8227-bbb52adb4a81"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="60537835"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/3c4a595c-4b7e-4656-9e3c-51f72e7966fe"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="3c4a595c-4b7e-4656-9e3c-51f72e7966fe"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1993-06-01"/> + <address> + <type value="both"/> + <line value="Reusrather Str. 44a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="44a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Reusrather Str."/> + </extension> + </line> + <city value="Christinadorf"/> + <postalCode value="66304"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/17a112d9-b27d-4c98-b8b6-62f8172ead9f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="17a112d9-b27d-4c98-b8b6-62f8172ead9f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="384514918"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(09898) 0577227"/> + </telecom> + <telecom> + <system value="email"/> + <value value="daniel.engelen@lewke.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Kneippstr. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kneippstr."/> + </extension> + </line> + <city value="Neu Ricardoheim"/> + <postalCode value="46562"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/12446a1b-0c43-4aef-a02b-6ab59150d7c3"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="12446a1b-0c43-4aef-a02b-6ab59150d7c3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="61"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c62e8e5a-88bd-465b-b0d7-fa99e4ff4c03"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104626903"/> + </identifier> + <display value="BKK BPW Bergische Achsen KG Wiehl"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/56153ecc-2e19-4b24-8911-2ce5d572b133"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="56153ecc-2e19-4b24-8911-2ce5d572b133"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="417223439"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/dfb4411c-1704-43cb-acc0-ba312c2fb5f7"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="dfb4411c-1704-43cb-acc0-ba312c2fb5f7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f9adf34b-54b3-4136-8227-bbb52adb4a81"/> + </medicationReference> + <subject> + <reference value="Patient/3c4a595c-4b7e-4656-9e3c-51f72e7966fe"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/56153ecc-2e19-4b24-8911-2ce5d572b133"/> + </requester> + <insurance> + <reference value="Coverage/12446a1b-0c43-4aef-a02b-6ab59150d7c3"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/output.json new file mode 100644 index 00000000..395e6c77 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "c2ad19ce-176b-4a94-bd2f-c6f98bd8419f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.687.86" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e5f78797-2ccd-48e4-beed-a3d329539102", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4923c468-267c-4f36-8335-2dc6474ea35f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4923c468-267c-4f36-8335-2dc6474ea35f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "60537835" + } ], + "text": "Zytostatika" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2da9911f-f338-4288-a6a4-7f8660a5b5a3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "384514918" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(09898) 0577227" + }, { + "system": "email", + "value": "daniel.engelen@lewke.de" + } ], + "address": [ { + "type": "both", + "line": [ "Kneippstr. 9" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "9" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Kneippstr." + } ] + } ], + "city": "Neu Ricardoheim", + "postalCode": "46562", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e3f0fe97-3653-4889-b654-eeb1808a5f2c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "417223439" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/output.xml new file mode 100644 index 00000000..43f80d38 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c2ad19ce/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c2ad19ce-176b-4a94-bd2f-c6f98bd8419f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.687.86"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e5f78797-2ccd-48e4-beed-a3d329539102"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4923c468-267c-4f36-8335-2dc6474ea35f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4923c468-267c-4f36-8335-2dc6474ea35f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="60537835"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2da9911f-f338-4288-a6a4-7f8660a5b5a3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="384514918"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(09898) 0577227"/> + </telecom> + <telecom> + <system value="email"/> + <value value="daniel.engelen@lewke.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Kneippstr. 9"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="9"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kneippstr."/> + </extension> + </line> + <city value="Neu Ricardoheim"/> + <postalCode value="46562"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e3f0fe97-3653-4889-b654-eeb1808a5f2c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="417223439"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/input.xml new file mode 100644 index 00000000..675ff122 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="cb7063e3-a77f-4a77-8adc-fd72d411e9c8"/> + <meta> + <lastUpdated value="2024-02-08T19:01:11.472+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.742.49"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:01:11.472+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/d64b245f-1fc3-4afd-b3ca-1bd05404b4dd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d64b245f-1fc3-4afd-b3ca-1bd05404b4dd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/35432718-78f1-42c2-b4a9-e4df4b9f669b"/> + </subject> + <date value="2024-02-08T19:01:11+01:00"/> + <author> + <reference value="Practitioner/b74c6cee-3a64-4c55-aaa4-bc90f1be1d97"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d922c186-df05-4754-8d65-77b9a3235617"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/5b1c5dff-53f8-4564-946d-9920a8d70581"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/d44af484-32b7-4d34-99b4-457b3069c606"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/b8b6f343-e196-4bf1-87e4-482535ff8f0e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b8b6f343-e196-4bf1-87e4-482535ff8f0e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/35432718-78f1-42c2-b4a9-e4df4b9f669b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="35432718-78f1-42c2-b4a9-e4df4b9f669b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1965-07-21"/> + <address> + <type value="both"/> + <line value="Bertha-von-Suttner-Str. 27b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bertha-von-Suttner-Str."/> + </extension> + </line> + <city value="Reppinland"/> + <postalCode value="87321"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/d922c186-df05-4754-8d65-77b9a3235617"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d922c186-df05-4754-8d65-77b9a3235617"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="739219832"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02590) 1658207"/> + </telecom> + <telecom> + <system value="email"/> + <value value="kerim.lenk@roba.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Hallesche Str. 17b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hallesche Str."/> + </extension> + </line> + <city value="Leanderfeld"/> + <postalCode value="59483"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/5b1c5dff-53f8-4564-946d-9920a8d70581"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="5b1c5dff-53f8-4564-946d-9920a8d70581"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="73"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/a8b2b87b-4392-4690-9bac-49657c515ecf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="106329225"/> + </identifier> + <display value="Debeka BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/b74c6cee-3a64-4c55-aaa4-bc90f1be1d97"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b74c6cee-3a64-4c55-aaa4-bc90f1be1d97"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="610878599"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/d44af484-32b7-4d34-99b4-457b3069c606"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d44af484-32b7-4d34-99b4-457b3069c606"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b8b6f343-e196-4bf1-87e4-482535ff8f0e"/> + </medicationReference> + <subject> + <reference value="Patient/35432718-78f1-42c2-b4a9-e4df4b9f669b"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/b74c6cee-3a64-4c55-aaa4-bc90f1be1d97"/> + </requester> + <insurance> + <reference value="Coverage/5b1c5dff-53f8-4564-946d-9920a8d70581"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/output.json new file mode 100644 index 00000000..21b647b4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "c3479bd3-ba4f-4cd3-8078-d9c265ac1e61", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.742.49" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8e3f324d-5b48-474f-a96b-e39f69f37449", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/5b71dbdc-9f9b-49bb-bb45-c19252142d47" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5b71dbdc-9f9b-49bb-bb45-c19252142d47", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "37cef92f-8334-4616-bbd7-8f4dddcd9abf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "739219832" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(02590) 1658207" + }, { + "system": "email", + "value": "kerim.lenk@roba.org" + } ], + "address": [ { + "type": "both", + "line": [ "Hallesche Str. 17b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "17b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Hallesche Str." + } ] + } ], + "city": "Leanderfeld", + "postalCode": "59483", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f42afeae-8ecf-4c2a-9463-fb862edc4ef6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "610878599" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/output.xml new file mode 100644 index 00000000..b48dc83d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c3479bd3/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c3479bd3-ba4f-4cd3-8078-d9c265ac1e61"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.742.49"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8e3f324d-5b48-474f-a96b-e39f69f37449"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5b71dbdc-9f9b-49bb-bb45-c19252142d47"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5b71dbdc-9f9b-49bb-bb45-c19252142d47"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="37cef92f-8334-4616-bbd7-8f4dddcd9abf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="739219832"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02590) 1658207"/> + </telecom> + <telecom> + <system value="email"/> + <value value="kerim.lenk@roba.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Hallesche Str. 17b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hallesche Str."/> + </extension> + </line> + <city value="Leanderfeld"/> + <postalCode value="59483"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f42afeae-8ecf-4c2a-9463-fb862edc4ef6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="610878599"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/input.xml new file mode 100644 index 00000000..664812ba --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="2ddcab15-3b85-488e-b935-49fda20d353d"/> + <meta> + <lastUpdated value="2024-02-08T19:08:27.711+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.781.29"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:08:27.711+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/12659734-9b3e-4932-bd52-652ff6bc903a"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="12659734-9b3e-4932-bd52-652ff6bc903a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/01d2ff96-ecdc-4a36-976f-0a604b52f7c9"/> + </subject> + <date value="2024-02-08T19:08:27+01:00"/> + <author> + <reference value="Practitioner/bdc763ab-18c4-4e45-8745-1608171691f4"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/286b8fb0-1500-4038-82b9-25785e4a521d"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b4f19b86-8aa4-415c-a614-53e7fc7c1ff6"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/f4b17ec9-a826-4050-90a1-971921caa9b1"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/5afd8ef0-d91a-445a-9c00-5277f1c57e62"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5afd8ef0-d91a-445a-9c00-5277f1c57e62"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16403786"/> + </coding> + <text value="Belglucofen"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/01d2ff96-ecdc-4a36-976f-0a604b52f7c9"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="01d2ff96-ecdc-4a36-976f-0a604b52f7c9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1990-02-27"/> + <address> + <type value="both"/> + <line value="Warnowstr. 17b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Warnowstr."/> + </extension> + </line> + <city value="Cecilebrunn"/> + <postalCode value="21240"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/286b8fb0-1500-4038-82b9-25785e4a521d"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="286b8fb0-1500-4038-82b9-25785e4a521d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="478570881"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8195-22746056"/> + </telecom> + <telecom> + <system value="email"/> + <value value="johann.morgenstern@albrecht.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Hütte 73a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="73a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hütte"/> + </extension> + </line> + <city value="Neu Talealand"/> + <postalCode value="87121"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b4f19b86-8aa4-415c-a614-53e7fc7c1ff6"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b4f19b86-8aa4-415c-a614-53e7fc7c1ff6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="78"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/32997f49-99d6-46b1-9303-66f9d921f17b"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018007"/> + </identifier> + <display value="AOK Baden‐Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/bdc763ab-18c4-4e45-8745-1608171691f4"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bdc763ab-18c4-4e45-8745-1608171691f4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="395405673"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/f4b17ec9-a826-4050-90a1-971921caa9b1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f4b17ec9-a826-4050-90a1-971921caa9b1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:5cd52661-eea8-4da7-aca7-bc1ae61f5d0f"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5afd8ef0-d91a-445a-9c00-5277f1c57e62"/> + </medicationReference> + <subject> + <reference value="Patient/01d2ff96-ecdc-4a36-976f-0a604b52f7c9"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/bdc763ab-18c4-4e45-8745-1608171691f4"/> + </requester> + <insurance> + <reference value="Coverage/b4f19b86-8aa4-415c-a614-53e7fc7c1ff6"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/output.json new file mode 100644 index 00000000..f6407a74 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "c60771b5-57fe-4f01-9f04-2efeb8c32856", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.781.29" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "4b3de641-7044-4d47-9727-a27891d68b8c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-04" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:5cd52661-eea8-4da7-aca7-bc1ae61f5d0f" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/816d7904-e986-4da8-a034-79aac629a09e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "816d7904-e986-4da8-a034-79aac629a09e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16403786" + } ], + "text": "Belglucofen" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "176817a9-caa3-4b9c-8932-d86c8478f7cf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "478570881" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-8195-22746056" + }, { + "system": "email", + "value": "johann.morgenstern@albrecht.ch" + } ], + "address": [ { + "type": "both", + "line": [ "Hütte 73a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "73a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Hütte" + } ] + } ], + "city": "Neu Talealand", + "postalCode": "87121", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b79bb7f7-936c-4a54-b89d-93d71eb93e62", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "395405673" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/output.xml new file mode 100644 index 00000000..ea39df4f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_c60771b5/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c60771b5-57fe-4f01-9f04-2efeb8c32856"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.781.29"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4b3de641-7044-4d47-9727-a27891d68b8c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:5cd52661-eea8-4da7-aca7-bc1ae61f5d0f"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/816d7904-e986-4da8-a034-79aac629a09e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="816d7904-e986-4da8-a034-79aac629a09e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16403786"/> + </coding> + <text value="Belglucofen"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="176817a9-caa3-4b9c-8932-d86c8478f7cf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="478570881"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8195-22746056"/> + </telecom> + <telecom> + <system value="email"/> + <value value="johann.morgenstern@albrecht.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Hütte 73a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="73a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hütte"/> + </extension> + </line> + <city value="Neu Talealand"/> + <postalCode value="87121"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b79bb7f7-936c-4a54-b89d-93d71eb93e62"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="395405673"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/input.xml new file mode 100644 index 00000000..ad4e4bfe --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ad686294-da57-47e1-b95d-5093fbc7591e"/> + <meta> + <lastUpdated value="2024-02-08T19:06:13.201+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.769.65"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:06:13.201+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/61965d3c-1346-4295-9745-d80977d48100"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="61965d3c-1346-4295-9745-d80977d48100"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/e6bc9b2f-6835-41f2-b5fb-af854d51e2ad"/> + </subject> + <date value="2024-02-08T19:06:13+01:00"/> + <author> + <reference value="Practitioner/473c22fb-cb05-4345-a765-8dbacd6095aa"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/6681c9dd-7b4c-4731-a07f-202f3deb86c1"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/6add1b2a-08cb-433c-9435-658367e5e9e4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/541babee-78ea-4c4c-8401-c675a1404fb2"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/0df78f1b-8930-4f2f-8c92-3a8659f694ff"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0df78f1b-8930-4f2f-8c92-3a8659f694ff"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/e6bc9b2f-6835-41f2-b5fb-af854d51e2ad"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="e6bc9b2f-6835-41f2-b5fb-af854d51e2ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1982-05-31"/> + <address> + <type value="both"/> + <line value="Auf'm Berg 87a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="87a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auf'm Berg"/> + </extension> + </line> + <city value="Ost Lionelburg"/> + <postalCode value="84318"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/6681c9dd-7b4c-4731-a07f-202f3deb86c1"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6681c9dd-7b4c-4731-a07f-202f3deb86c1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="555846595"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0267) 478020260"/> + </telecom> + <telecom> + <system value="email"/> + <value value="emre.bauschinger@kette.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Ulrichstr. 29c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ulrichstr."/> + </extension> + </line> + <city value="Klein Lilli"/> + <postalCode value="13664"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/6add1b2a-08cb-433c-9435-658367e5e9e4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="6add1b2a-08cb-433c-9435-658367e5e9e4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="20"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/6e33d0fd-3c21-4148-9c82-65449a5a3146"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="103524101"/> + </identifier> + <display value="BKK BJB"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/473c22fb-cb05-4345-a765-8dbacd6095aa"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="473c22fb-cb05-4345-a765-8dbacd6095aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="776481826"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/541babee-78ea-4c4c-8401-c675a1404fb2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="541babee-78ea-4c4c-8401-c675a1404fb2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0df78f1b-8930-4f2f-8c92-3a8659f694ff"/> + </medicationReference> + <subject> + <reference value="Patient/e6bc9b2f-6835-41f2-b5fb-af854d51e2ad"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/473c22fb-cb05-4345-a765-8dbacd6095aa"/> + </requester> + <insurance> + <reference value="Coverage/6add1b2a-08cb-433c-9435-658367e5e9e4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/output.json new file mode 100644 index 00000000..8b46a62d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "cae47569-4117-4e68-9add-e6a9bb3c52fd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.769.65" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "44d15e0d-18b6-4063-aad4-9e53e390f832", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c3da57aa-2367-4f55-b668-eeb78ba0fff8" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c3da57aa-2367-4f55-b668-eeb78ba0fff8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "baf19225-f82c-40a3-90ff-c367bc6352ea", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "555846595" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0267) 478020260" + }, { + "system": "email", + "value": "emre.bauschinger@kette.name" + } ], + "address": [ { + "type": "both", + "line": [ "Ulrichstr. 29c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "29c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Ulrichstr." + } ] + } ], + "city": "Klein Lilli", + "postalCode": "13664", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ea70ab82-2cc4-4c4f-b2c1-6e4a2ef204cc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "776481826" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/output.xml new file mode 100644 index 00000000..b27f128b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cae47569/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cae47569-4117-4e68-9add-e6a9bb3c52fd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.769.65"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="44d15e0d-18b6-4063-aad4-9e53e390f832"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c3da57aa-2367-4f55-b668-eeb78ba0fff8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c3da57aa-2367-4f55-b668-eeb78ba0fff8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="baf19225-f82c-40a3-90ff-c367bc6352ea"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="555846595"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0267) 478020260"/> + </telecom> + <telecom> + <system value="email"/> + <value value="emre.bauschinger@kette.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Ulrichstr. 29c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ulrichstr."/> + </extension> + </line> + <city value="Klein Lilli"/> + <postalCode value="13664"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ea70ab82-2cc4-4c4f-b2c1-6e4a2ef204cc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="776481826"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/input.xml new file mode 100644 index 00000000..96227a47 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="bfd34b90-c3fa-450e-9b91-4c6156e8d74d"/> + <meta> + <lastUpdated value="2024-02-13T11:23:52.280+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.836.90"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-13T11:23:52.280+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/ebd6518e-a8f0-4067-9931-5e29498e9c40"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ebd6518e-a8f0-4067-9931-5e29498e9c40"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/047873e5-96d4-4106-9f99-72b65dbf76e4"/> + </subject> + <date value="2024-02-13T11:23:52+01:00"/> + <author> + <reference value="Practitioner/17d08f73-042f-4600-8b01-0992849962b6"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/f4255b6c-e2e0-4f18-b62e-6a51ade495bb"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/d5e7df92-fdd5-4c2d-bae6-47f42ccc45a0"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/fdc1cbac-1f92-4765-abb4-0d5b9f794c97"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/d1b3efd6-6840-4520-af6a-aab87abd368f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d1b3efd6-6840-4520-af6a-aab87abd368f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/047873e5-96d4-4106-9f99-72b65dbf76e4"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="047873e5-96d4-4106-9f99-72b65dbf76e4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + <name> + <use value="official"/> + <family value="Gondern"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Gondern"/> + </extension> + </family> + <given value="Aenna"/> + </name> + <birthDate value="1972-07-01"/> + <address> + <type value="both"/> + <line value="Schmalenbruch 99b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="99b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schmalenbruch"/> + </extension> + </line> + <city value="West Cedrikbrunn"/> + <postalCode value="35630"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/f4255b6c-e2e0-4f18-b62e-6a51ade495bb"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f4255b6c-e2e0-4f18-b62e-6a51ade495bb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="483241394"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-585-8075726"/> + </telecom> + <telecom> + <system value="email"/> + <value value="batuhan.bartels@karsten.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Heimstättenweg 692"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="692"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heimstättenweg"/> + </extension> + </line> + <city value="Neu Malina"/> + <postalCode value="67550"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/d5e7df92-fdd5-4c2d-bae6-47f42ccc45a0"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="d5e7df92-fdd5-4c2d-bae6-47f42ccc45a0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="02"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/6900ee86-c08f-4b5d-9e20-70da4e9cfdcc"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="100696012"/> + </identifier> + <display value="AOK Nordost ‐ Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/17d08f73-042f-4600-8b01-0992849962b6"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="17d08f73-042f-4600-8b01-0992849962b6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="621509815"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/fdc1cbac-1f92-4765-abb4-0d5b9f794c97"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fdc1cbac-1f92-4765-abb4-0d5b9f794c97"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d1b3efd6-6840-4520-af6a-aab87abd368f"/> + </medicationReference> + <subject> + <reference value="Patient/047873e5-96d4-4106-9f99-72b65dbf76e4"/> + </subject> + <authoredOn value="2024-02-13"/> + <requester> + <reference value="Practitioner/17d08f73-042f-4600-8b01-0992849962b6"/> + </requester> + <insurance> + <reference value="Coverage/d5e7df92-fdd5-4c2d-bae6-47f42ccc45a0"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/output.json new file mode 100644 index 00000000..5dee9ba7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "cb78899c-8deb-48e4-b603-3375b8e76433", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.474.836.90" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-13" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a4ff1615-29ad-4478-b76a-384f35b4eec9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/02b1cf42-eb71-4b4d-8211-677e920002a3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-13", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "02b1cf42-eb71-4b4d-8211-677e920002a3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "013f4260-3581-4013-92ab-55559a8b5299", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "483241394" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-585-8075726" + }, { + "system": "email", + "value": "batuhan.bartels@karsten.org" + } ], + "address": [ { + "type": "both", + "line": [ "Heimstättenweg 692" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "692" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Heimstättenweg" + } ] + } ], + "city": "Neu Malina", + "postalCode": "67550", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "5a6e6e28-6131-4aad-93ea-a34104d8e51f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "621509815" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/output.xml new file mode 100644 index 00000000..533e101c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cb78899c/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cb78899c-8deb-48e4-b603-3375b8e76433"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.836.90"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-13"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a4ff1615-29ad-4478-b76a-384f35b4eec9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/02b1cf42-eb71-4b4d-8211-677e920002a3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-13"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="02b1cf42-eb71-4b4d-8211-677e920002a3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="013f4260-3581-4013-92ab-55559a8b5299"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="483241394"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-585-8075726"/> + </telecom> + <telecom> + <system value="email"/> + <value value="batuhan.bartels@karsten.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Heimstättenweg 692"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="692"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heimstättenweg"/> + </extension> + </line> + <city value="Neu Malina"/> + <postalCode value="67550"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="5a6e6e28-6131-4aad-93ea-a34104d8e51f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="621509815"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/input.xml new file mode 100644 index 00000000..e46fb632 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9645a6a3-6016-4b9e-bf29-c8faa8fc8750"/> + <meta> + <lastUpdated value="2024-02-08T19:03:47.398+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.757.04"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:47.398+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/46d6e641-fb91-4cbe-bd37-bb0f7819eec6"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="46d6e641-fb91-4cbe-bd37-bb0f7819eec6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/4b585812-dad9-4f66-b576-2d7fbc570dd0"/> + </subject> + <date value="2024-02-08T19:03:47+01:00"/> + <author> + <reference value="Practitioner/f58f8336-5270-4be2-a63e-89738d80e9d9"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/e9663715-b4dd-425c-a42e-d821c9ea22bb"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/c67706dd-024e-44bb-9b0a-bc7dae5eb045"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/4a39de55-372f-46fa-8a91-b060c7abedfa"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/61fbee44-f40d-4d40-a5a1-d7f50ef7bade"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="61fbee44-f40d-4d40-a5a1-d7f50ef7bade"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/4b585812-dad9-4f66-b576-2d7fbc570dd0"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="4b585812-dad9-4f66-b576-2d7fbc570dd0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1969-12-05"/> + <address> + <type value="both"/> + <line value="Otto-Varnhagen-Str. 891"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="891"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Otto-Varnhagen-Str."/> + </extension> + </line> + <city value="Neu Medine"/> + <postalCode value="79016"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/e9663715-b4dd-425c-a42e-d821c9ea22bb"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e9663715-b4dd-425c-a42e-d821c9ea22bb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711619336"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02416) 4196742"/> + </telecom> + <telecom> + <system value="email"/> + <value value="meike.wassiluk@bogdashin.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Dünenweg 81b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="81b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dünenweg"/> + </extension> + </line> + <city value="Groß Daria"/> + <postalCode value="56205"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/c67706dd-024e-44bb-9b0a-bc7dae5eb045"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="c67706dd-024e-44bb-9b0a-bc7dae5eb045"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="55"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/52880a97-04f5-4bd7-ae7d-de3c694381a7"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101300129"/> + </identifier> + <display value="IKK Nord"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/f58f8336-5270-4be2-a63e-89738d80e9d9"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f58f8336-5270-4be2-a63e-89738d80e9d9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="611647025"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/4a39de55-372f-46fa-8a91-b060c7abedfa"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4a39de55-372f-46fa-8a91-b060c7abedfa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/61fbee44-f40d-4d40-a5a1-d7f50ef7bade"/> + </medicationReference> + <subject> + <reference value="Patient/4b585812-dad9-4f66-b576-2d7fbc570dd0"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/f58f8336-5270-4be2-a63e-89738d80e9d9"/> + </requester> + <insurance> + <reference value="Coverage/c67706dd-024e-44bb-9b0a-bc7dae5eb045"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/output.json new file mode 100644 index 00000000..f9837b66 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "cc2415eb-63f4-46bb-8706-adba8717be17", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.757.04" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "543abae0-1f76-4169-acb2-499bb938c92f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4a54cd38-e331-4a5c-84fb-b89651817c6e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4a54cd38-e331-4a5c-84fb-b89651817c6e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2f0b6987-2996-4028-9ef8-84c523d69888", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "711619336" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(02416) 4196742" + }, { + "system": "email", + "value": "meike.wassiluk@bogdashin.com" + } ], + "address": [ { + "type": "both", + "line": [ "Dünenweg 81b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "81b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Dünenweg" + } ] + } ], + "city": "Groß Daria", + "postalCode": "56205", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "872ab1b3-1080-4a11-880e-3511ab60c1be", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "611647025" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/output.xml new file mode 100644 index 00000000..f377559d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cc2415eb/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cc2415eb-63f4-46bb-8706-adba8717be17"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.757.04"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="543abae0-1f76-4169-acb2-499bb938c92f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4a54cd38-e331-4a5c-84fb-b89651817c6e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4a54cd38-e331-4a5c-84fb-b89651817c6e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2f0b6987-2996-4028-9ef8-84c523d69888"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711619336"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02416) 4196742"/> + </telecom> + <telecom> + <system value="email"/> + <value value="meike.wassiluk@bogdashin.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Dünenweg 81b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="81b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dünenweg"/> + </extension> + </line> + <city value="Groß Daria"/> + <postalCode value="56205"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="872ab1b3-1080-4a11-880e-3511ab60c1be"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="611647025"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/input.xml new file mode 100644 index 00000000..e2105647 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ab9f6a4e-32f6-4247-95cd-5256807d105f"/> + <meta> + <lastUpdated value="2024-02-08T19:01:28.155+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.744.43"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:01:28.155+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/01e7b8ea-04ba-4c76-9fc2-e6a77cedeab8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="01e7b8ea-04ba-4c76-9fc2-e6a77cedeab8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/df501cd5-bf8f-4d1b-a63f-a8feee02452f"/> + </subject> + <date value="2024-02-08T19:01:28+01:00"/> + <author> + <reference value="Practitioner/a1b5615b-4fcc-44b4-8be5-a2f33cb9de3a"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/3824d24f-29c7-4463-bcac-c7d7c0a41bd0"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/e018f4e3-c679-4e00-8290-5038b54cbd77"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/09ab3a8f-66d8-4949-8628-3e699a0c7c7d"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/c0320ef7-7b01-458b-b5ef-4f442e600010"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c0320ef7-7b01-458b-b5ef-4f442e600010"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/df501cd5-bf8f-4d1b-a63f-a8feee02452f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="df501cd5-bf8f-4d1b-a63f-a8feee02452f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1980-10-21"/> + <address> + <type value="both"/> + <line value="Zur Alten Brauerei 12"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="12"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Zur Alten Brauerei"/> + </extension> + </line> + <city value="Colleenscheid"/> + <postalCode value="59418"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/3824d24f-29c7-4463-bcac-c7d7c0a41bd0"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3824d24f-29c7-4463-bcac-c7d7c0a41bd0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="883968316"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-074-9317125"/> + </telecom> + <telecom> + <system value="email"/> + <value value="amira.sauer@werrmann.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Wingchen-Str. 63"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="63"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Wingchen-Str."/> + </extension> + </line> + <city value="Nikescheid"/> + <postalCode value="34828"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/e018f4e3-c679-4e00-8290-5038b54cbd77"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e018f4e3-c679-4e00-8290-5038b54cbd77"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="62"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/bf6bd310-cf4b-4ab0-9a83-d587779ad764"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108608820"/> + </identifier> + <display value="LKK Franken und Oberbayern"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/a1b5615b-4fcc-44b4-8be5-a2f33cb9de3a"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a1b5615b-4fcc-44b4-8be5-a2f33cb9de3a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="225840686"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/09ab3a8f-66d8-4949-8628-3e699a0c7c7d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="09ab3a8f-66d8-4949-8628-3e699a0c7c7d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c0320ef7-7b01-458b-b5ef-4f442e600010"/> + </medicationReference> + <subject> + <reference value="Patient/df501cd5-bf8f-4d1b-a63f-a8feee02452f"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/a1b5615b-4fcc-44b4-8be5-a2f33cb9de3a"/> + </requester> + <insurance> + <reference value="Coverage/e018f4e3-c679-4e00-8290-5038b54cbd77"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/output.json new file mode 100644 index 00000000..e5aa0082 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "ce4b1eb6-b8cd-4432-8dee-ca1cc4d4d26d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.744.43" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "bcd3f725-4744-48d0-bdf5-2125d2f6c176", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/34299c93-3cc4-4979-b938-61ae25a1182b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "34299c93-3cc4-4979-b938-61ae25a1182b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "dced6b37-c903-4054-88a7-3817ac9a7665", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "883968316" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-074-9317125" + }, { + "system": "email", + "value": "amira.sauer@werrmann.name" + } ], + "address": [ { + "type": "both", + "line": [ "Karl-Wingchen-Str. 63" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "63" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Karl-Wingchen-Str." + } ] + } ], + "city": "Nikescheid", + "postalCode": "34828", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "336da92f-3759-4830-8195-a25eaadd86bd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "225840686" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/output.xml new file mode 100644 index 00000000..6e1475e9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_ce4b1eb6/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ce4b1eb6-b8cd-4432-8dee-ca1cc4d4d26d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.744.43"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="bcd3f725-4744-48d0-bdf5-2125d2f6c176"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/34299c93-3cc4-4979-b938-61ae25a1182b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="34299c93-3cc4-4979-b938-61ae25a1182b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="dced6b37-c903-4054-88a7-3817ac9a7665"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="883968316"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-074-9317125"/> + </telecom> + <telecom> + <system value="email"/> + <value value="amira.sauer@werrmann.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Wingchen-Str. 63"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="63"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Wingchen-Str."/> + </extension> + </line> + <city value="Nikescheid"/> + <postalCode value="34828"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="336da92f-3759-4830-8195-a25eaadd86bd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="225840686"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/input.xml new file mode 100644 index 00000000..035ea1ff --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="16b1f573-efe2-4deb-acb8-9ad8cc0ec788"/> + <meta> + <lastUpdated value="2024-02-08T19:03:39.890+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.756.07"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:39.890+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/d4c521b6-3b07-4fb8-a211-a3536b8b9103"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d4c521b6-3b07-4fb8-a211-a3536b8b9103"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/69f21c35-06ff-42f6-82e0-62342a3f9782"/> + </subject> + <date value="2024-02-08T19:03:39+01:00"/> + <author> + <reference value="Practitioner/527c3dac-63ca-4574-ace8-92e24dc28da7"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/82aa23bf-a04d-4882-9219-fa9d7df50f31"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/5186d9df-c2da-4d83-89ef-5013d6a154fc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/8723e2b4-976f-4dda-8a53-dcfd83558380"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/5a09919f-802b-43e9-b62a-329150214fa4"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5a09919f-802b-43e9-b62a-329150214fa4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/69f21c35-06ff-42f6-82e0-62342a3f9782"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="69f21c35-06ff-42f6-82e0-62342a3f9782"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="2005-04-23"/> + <address> + <type value="both"/> + <line value="Buschkämpchen 723"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="723"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Buschkämpchen"/> + </extension> + </line> + <city value="Neu Torben"/> + <postalCode value="14006"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/82aa23bf-a04d-4882-9219-fa9d7df50f31"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="82aa23bf-a04d-4882-9219-fa9d7df50f31"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="460007921"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3117-51449999"/> + </telecom> + <telecom> + <system value="email"/> + <value value="meik.tonat@herrmann.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Windthorststr. 57a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="57a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Windthorststr."/> + </extension> + </line> + <city value="Pinnockland"/> + <postalCode value="14407"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/5186d9df-c2da-4d83-89ef-5013d6a154fc"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="5186d9df-c2da-4d83-89ef-5013d6a154fc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="71"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/12c05f74-316f-4b80-8571-17ae2893e209"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104239915"/> + </identifier> + <display value="BKK ESSANELLE"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/527c3dac-63ca-4574-ace8-92e24dc28da7"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="527c3dac-63ca-4574-ace8-92e24dc28da7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="699637007"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/8723e2b4-976f-4dda-8a53-dcfd83558380"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8723e2b4-976f-4dda-8a53-dcfd83558380"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5a09919f-802b-43e9-b62a-329150214fa4"/> + </medicationReference> + <subject> + <reference value="Patient/69f21c35-06ff-42f6-82e0-62342a3f9782"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/527c3dac-63ca-4574-ace8-92e24dc28da7"/> + </requester> + <insurance> + <reference value="Coverage/5186d9df-c2da-4d83-89ef-5013d6a154fc"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/output.json new file mode 100644 index 00000000..53876284 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "cec6c127-2c0f-47f3-a77f-783aba60b4cc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.756.07" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "941406d0-8aca-4b57-84d3-ba536c234670", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/fad7be59-97dc-47b3-9b51-8b5b228b14a3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fad7be59-97dc-47b3-9b51-8b5b228b14a3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "4e7e857b-da67-42ba-a225-86156ffad206", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "460007921" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-3117-51449999" + }, { + "system": "email", + "value": "meik.tonat@herrmann.de" + } ], + "address": [ { + "type": "both", + "line": [ "Windthorststr. 57a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "57a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Windthorststr." + } ] + } ], + "city": "Pinnockland", + "postalCode": "14407", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "5cd2b953-f5d4-4019-ace2-518b80b0c3a6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "699637007" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/output.xml new file mode 100644 index 00000000..660dd23e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_cec6c127/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cec6c127-2c0f-47f3-a77f-783aba60b4cc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.756.07"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="941406d0-8aca-4b57-84d3-ba536c234670"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fad7be59-97dc-47b3-9b51-8b5b228b14a3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fad7be59-97dc-47b3-9b51-8b5b228b14a3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4e7e857b-da67-42ba-a225-86156ffad206"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="460007921"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3117-51449999"/> + </telecom> + <telecom> + <system value="email"/> + <value value="meik.tonat@herrmann.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Windthorststr. 57a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="57a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Windthorststr."/> + </extension> + </line> + <city value="Pinnockland"/> + <postalCode value="14407"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="5cd2b953-f5d4-4019-ace2-518b80b0c3a6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="699637007"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/input.xml new file mode 100644 index 00000000..399c2156 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="0fdadb04-6a96-4ed8-a247-d0e1e5bcfdee"/> + <meta> + <lastUpdated value="2024-02-08T19:02:07.984+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.746.37"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:02:07.984+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/4eb71d9a-30f6-4ed5-85f9-6c4b68e538a6"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="4eb71d9a-30f6-4ed5-85f9-6c4b68e538a6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/de2d24bf-ccea-46c0-b8a6-5671eb73ba53"/> + </subject> + <date value="2024-02-08T19:02:07+01:00"/> + <author> + <reference value="Practitioner/7af567eb-d688-4dbd-8bd0-ab96d4e49a57"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/7468d413-ca95-4df2-93a9-84c158605438"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/53d98065-8e96-4754-bc32-82ac6407c199"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/022f13d5-1427-4eb8-b147-69f54f13a042"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/7780cfc5-16f8-4bf0-b281-a0fc84749ad3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7780cfc5-16f8-4bf0-b281-a0fc84749ad3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/de2d24bf-ccea-46c0-b8a6-5671eb73ba53"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="de2d24bf-ccea-46c0-b8a6-5671eb73ba53"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1998-04-09"/> + <address> + <type value="both"/> + <line value="Am Klösterchen 47a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="47a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Klösterchen"/> + </extension> + </line> + <city value="Alt Sabrina"/> + <postalCode value="26591"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/7468d413-ca95-4df2-93a9-84c158605438"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="7468d413-ca95-4df2-93a9-84c158605438"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="612914060"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0061) 349909615"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ronja.boruschewski@assmus.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Elbestr. 917"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="917"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Elbestr."/> + </extension> + </line> + <city value="Güldemeisterheim"/> + <postalCode value="78118"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/53d98065-8e96-4754-bc32-82ac6407c199"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="53d98065-8e96-4754-bc32-82ac6407c199"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="49"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/99c05261-ecbc-47a2-9cdf-59f35e706fa5"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="102137985"/> + </identifier> + <display value="TUI BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/7af567eb-d688-4dbd-8bd0-ab96d4e49a57"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7af567eb-d688-4dbd-8bd0-ab96d4e49a57"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="935884750"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/022f13d5-1427-4eb8-b147-69f54f13a042"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="022f13d5-1427-4eb8-b147-69f54f13a042"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7780cfc5-16f8-4bf0-b281-a0fc84749ad3"/> + </medicationReference> + <subject> + <reference value="Patient/de2d24bf-ccea-46c0-b8a6-5671eb73ba53"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/7af567eb-d688-4dbd-8bd0-ab96d4e49a57"/> + </requester> + <insurance> + <reference value="Coverage/53d98065-8e96-4754-bc32-82ac6407c199"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/output.json new file mode 100644 index 00000000..0195647b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "d45686e2-0719-49cc-bac4-d72015f30b5f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.746.37" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1b7ea09a-1140-497e-8658-9e68b1fcbf74", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7031697f-97c5-4183-b01b-3b74883e9760" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7031697f-97c5-4183-b01b-3b74883e9760", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "11feef0f-39a4-465a-a97e-e1fcc54dfa83", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "612914060" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0061) 349909615" + }, { + "system": "email", + "value": "ronja.boruschewski@assmus.net" + } ], + "address": [ { + "type": "both", + "line": [ "Elbestr. 917" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "917" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Elbestr." + } ] + } ], + "city": "Güldemeisterheim", + "postalCode": "78118", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "cc6710ca-c383-458b-8e99-c6df3bb47260", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "935884750" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/output.xml new file mode 100644 index 00000000..f938deb7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_d45686e2/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d45686e2-0719-49cc-bac4-d72015f30b5f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.746.37"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1b7ea09a-1140-497e-8658-9e68b1fcbf74"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7031697f-97c5-4183-b01b-3b74883e9760"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7031697f-97c5-4183-b01b-3b74883e9760"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="11feef0f-39a4-465a-a97e-e1fcc54dfa83"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="612914060"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0061) 349909615"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ronja.boruschewski@assmus.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Elbestr. 917"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="917"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Elbestr."/> + </extension> + </line> + <city value="Güldemeisterheim"/> + <postalCode value="78118"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cc6710ca-c383-458b-8e99-c6df3bb47260"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="935884750"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/input.xml new file mode 100644 index 00000000..236326d0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="e4a92e97-c8be-4ba7-a100-06e0c67e8319"/> + <meta> + <lastUpdated value="2024-02-08T19:04:42.126+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.762.86"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:04:42.126+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/8bdee8ca-14c7-455f-9eb2-b0f910ba771c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8bdee8ca-14c7-455f-9eb2-b0f910ba771c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/550830ba-4abf-41af-aa84-c4d022268bd9"/> + </subject> + <date value="2024-02-08T19:04:42+01:00"/> + <author> + <reference value="Practitioner/1a768f4b-1f4a-4028-84a4-d87afa37e90b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/3b59453f-77ce-459f-979e-641f7d2111e2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/846a6184-9126-4e78-b4a1-ae71349489fc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/c75b8d68-259c-49b1-ab48-2fc18b70e880"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/53bcd445-b566-46e6-a3ce-c1b6fcd51965"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="53bcd445-b566-46e6-a3ce-c1b6fcd51965"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/550830ba-4abf-41af-aa84-c4d022268bd9"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="550830ba-4abf-41af-aa84-c4d022268bd9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1969-05-24"/> + <address> + <type value="both"/> + <line value="Im Kalkfeld 85c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="85c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Im Kalkfeld"/> + </extension> + </line> + <city value="Alt Selimland"/> + <postalCode value="22100"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/3b59453f-77ce-459f-979e-641f7d2111e2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3b59453f-77ce-459f-979e-641f7d2111e2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="178681307"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(03855) 5059185"/> + </telecom> + <telecom> + <system value="email"/> + <value value="katrin.fenner@lack.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Zeppelinstr. 45"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="45"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Zeppelinstr."/> + </extension> + </line> + <city value="Neu Sebastiandorf"/> + <postalCode value="60499"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/846a6184-9126-4e78-b4a1-ae71349489fc"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="846a6184-9126-4e78-b4a1-ae71349489fc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="83"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/9648da04-ce4d-464b-82ed-4008e8e80144"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109033393"/> + </identifier> + <display value="BKK Faber‐Castell und Partner"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/1a768f4b-1f4a-4028-84a4-d87afa37e90b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1a768f4b-1f4a-4028-84a4-d87afa37e90b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="743253968"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/c75b8d68-259c-49b1-ab48-2fc18b70e880"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c75b8d68-259c-49b1-ab48-2fc18b70e880"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/53bcd445-b566-46e6-a3ce-c1b6fcd51965"/> + </medicationReference> + <subject> + <reference value="Patient/550830ba-4abf-41af-aa84-c4d022268bd9"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/1a768f4b-1f4a-4028-84a4-d87afa37e90b"/> + </requester> + <insurance> + <reference value="Coverage/846a6184-9126-4e78-b4a1-ae71349489fc"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/output.json new file mode 100644 index 00000000..0ccf3394 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "dbeccf45-2015-4eb1-9515-5a54cf12a485", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.762.86" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c10582b8-aa26-436c-a38b-b70995bc58ef", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/5d293216-fe09-44fc-a961-797a8c6ee681" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5d293216-fe09-44fc-a961-797a8c6ee681", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d2afb627-cac3-4aaa-bd82-478564e556ec", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "178681307" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(03855) 5059185" + }, { + "system": "email", + "value": "katrin.fenner@lack.ch" + } ], + "address": [ { + "type": "both", + "line": [ "Zeppelinstr. 45" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "45" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Zeppelinstr." + } ] + } ], + "city": "Neu Sebastiandorf", + "postalCode": "60499", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "bf7b6b10-ca17-4097-a317-7cfc2e55d6ff", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "743253968" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/output.xml new file mode 100644 index 00000000..1ae19d5f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dbeccf45/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dbeccf45-2015-4eb1-9515-5a54cf12a485"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.762.86"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c10582b8-aa26-436c-a38b-b70995bc58ef"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5d293216-fe09-44fc-a961-797a8c6ee681"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5d293216-fe09-44fc-a961-797a8c6ee681"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2afb627-cac3-4aaa-bd82-478564e556ec"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="178681307"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(03855) 5059185"/> + </telecom> + <telecom> + <system value="email"/> + <value value="katrin.fenner@lack.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Zeppelinstr. 45"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="45"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Zeppelinstr."/> + </extension> + </line> + <city value="Neu Sebastiandorf"/> + <postalCode value="60499"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bf7b6b10-ca17-4097-a317-7cfc2e55d6ff"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="743253968"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/input.xml new file mode 100644 index 00000000..a2cf5376 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="a39897e0-4dcf-4e14-80e2-d28e0ae15e86"/> + <meta> + <lastUpdated value="2024-02-08T19:07:26.004+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.686.89"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:07:26.004+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/fab7e851-3260-494b-8ae6-578d49cb6c8f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="fab7e851-3260-494b-8ae6-578d49cb6c8f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ea6429b6-500f-4997-86c2-314edaf722ba"/> + </subject> + <date value="2024-02-08T19:07:26+01:00"/> + <author> + <reference value="Practitioner/b400a4ea-b8ed-4cbf-a981-dad5a91b86b9"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d55510e9-6e37-408c-8aa4-0a6923dbe8ea"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/6eeecd5c-63ca-42cb-a40e-bdf4c15411a7"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/eed3ea27-b29a-445e-941d-b645e63b88cf"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/594b6f15-8b7f-40c4-b8c7-aace608bfe9b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="594b6f15-8b7f-40c4-b8c7-aace608bfe9b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06427082"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/ea6429b6-500f-4997-86c2-314edaf722ba"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ea6429b6-500f-4997-86c2-314edaf722ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1967-11-17"/> + <address> + <type value="both"/> + <line value="Am Nonnenbruch 0"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="0"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Nonnenbruch"/> + </extension> + </line> + <city value="Klein Merve"/> + <postalCode value="59659"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/d55510e9-6e37-408c-8aa4-0a6923dbe8ea"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d55510e9-6e37-408c-8aa4-0a6923dbe8ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="487238495"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0631) 347228164"/> + </telecom> + <telecom> + <system value="email"/> + <value value="kian.franta@riermeier.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Auerweg 65"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="65"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auerweg"/> + </extension> + </line> + <city value="Schön Leandra"/> + <postalCode value="55353"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/6eeecd5c-63ca-42cb-a40e-bdf4c15411a7"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="6eeecd5c-63ca-42cb-a40e-bdf4c15411a7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/4b2f5988-cf58-40c3-9fcb-5114e9dc19eb"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104424830"/> + </identifier> + <display value="BKK GRILLO‐WERKE AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/b400a4ea-b8ed-4cbf-a981-dad5a91b86b9"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b400a4ea-b8ed-4cbf-a981-dad5a91b86b9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="550442587"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/eed3ea27-b29a-445e-941d-b645e63b88cf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="eed3ea27-b29a-445e-941d-b645e63b88cf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/594b6f15-8b7f-40c4-b8c7-aace608bfe9b"/> + </medicationReference> + <subject> + <reference value="Patient/ea6429b6-500f-4997-86c2-314edaf722ba"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/b400a4ea-b8ed-4cbf-a981-dad5a91b86b9"/> + </requester> + <insurance> + <reference value="Coverage/6eeecd5c-63ca-42cb-a40e-bdf4c15411a7"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/output.json new file mode 100644 index 00000000..4b24770f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "dd2d2c6b-112d-4a08-9de1-baf77250a20f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.686.89" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "5e9c3c2c-208a-4216-b44b-22910658295c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/40f3a7ea-5d90-4670-b38b-7f19f3767850" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "40f3a7ea-5d90-4670-b38b-7f19f3767850", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06427082" + } ], + "text": "Zytostatika" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2fd6bbc8-6159-4731-a7a2-e8e4dcd19585", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "487238495" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0631) 347228164" + }, { + "system": "email", + "value": "kian.franta@riermeier.de" + } ], + "address": [ { + "type": "both", + "line": [ "Auerweg 65" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "65" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Auerweg" + } ] + } ], + "city": "Schön Leandra", + "postalCode": "55353", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "74d6e30d-a29a-480b-9d82-0d256a8f15a7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "550442587" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/output.xml new file mode 100644 index 00000000..85474e8d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd2d2c6b/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dd2d2c6b-112d-4a08-9de1-baf77250a20f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.686.89"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5e9c3c2c-208a-4216-b44b-22910658295c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/40f3a7ea-5d90-4670-b38b-7f19f3767850"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="40f3a7ea-5d90-4670-b38b-7f19f3767850"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06427082"/> + </coding> + <text value="Zytostatika"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2fd6bbc8-6159-4731-a7a2-e8e4dcd19585"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="487238495"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0631) 347228164"/> + </telecom> + <telecom> + <system value="email"/> + <value value="kian.franta@riermeier.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Auerweg 65"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="65"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auerweg"/> + </extension> + </line> + <city value="Schön Leandra"/> + <postalCode value="55353"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="74d6e30d-a29a-480b-9d82-0d256a8f15a7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="550442587"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/input.xml new file mode 100644 index 00000000..1a9ef431 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="df31f167-f3d3-4d03-8a88-2e6b29eb3d6d"/> + <meta> + <lastUpdated value="2024-02-13T11:24:28.319+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.840.78"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-13T11:24:28.319+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/3c5c2305-ac1d-4a4b-8798-cacfc4ec00c8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="3c5c2305-ac1d-4a4b-8798-cacfc4ec00c8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c7010fc9-9d8a-4cac-868d-6eb0a9eb37ab"/> + </subject> + <date value="2024-02-13T11:24:28+01:00"/> + <author> + <reference value="Practitioner/8efee46a-9e29-4891-8e02-c13cf8ccdab2"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/72d0b469-11f1-4f33-a6c2-d073b454f693"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/a5c283ac-7053-4b12-a1df-0a50c23b2b80"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/b5fd4281-a8b8-4d0d-9833-ad874ab740e2"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/fc17ecf1-e67c-459e-93cc-1da0fd4ee84e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fc17ecf1-e67c-459e-93cc-1da0fd4ee84e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/c7010fc9-9d8a-4cac-868d-6eb0a9eb37ab"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c7010fc9-9d8a-4cac-868d-6eb0a9eb37ab"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="T046142499"/> + </identifier> + <name> + <use value="official"/> + <family value="Gondern"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Gondern"/> + </extension> + </family> + <given value="Aenna"/> + </name> + <birthDate value="1982-09-19"/> + <address> + <type value="both"/> + <line value="Lingenfeld 92b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="92b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lingenfeld"/> + </extension> + </line> + <city value="Neu Fynnstadt"/> + <postalCode value="41997"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/72d0b469-11f1-4f33-a6c2-d073b454f693"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="72d0b469-11f1-4f33-a6c2-d073b454f693"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="629521522"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(09367) 7801199"/> + </telecom> + <telecom> + <system value="email"/> + <value value="zoé.horna@bos.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Fester Weg 0"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="0"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Fester Weg"/> + </extension> + </line> + <city value="Maurergrün"/> + <postalCode value="89655"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/a5c283ac-7053-4b12-a1df-0a50c23b2b80"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="a5c283ac-7053-4b12-a1df-0a50c23b2b80"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="52"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/07253a49-0b46-4393-8063-f215e94bfa72"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108833674"/> + </identifier> + <display value="BKK KBA"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/8efee46a-9e29-4891-8e02-c13cf8ccdab2"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8efee46a-9e29-4891-8e02-c13cf8ccdab2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="887332180"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/b5fd4281-a8b8-4d0d-9833-ad874ab740e2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b5fd4281-a8b8-4d0d-9833-ad874ab740e2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fc17ecf1-e67c-459e-93cc-1da0fd4ee84e"/> + </medicationReference> + <subject> + <reference value="Patient/c7010fc9-9d8a-4cac-868d-6eb0a9eb37ab"/> + </subject> + <authoredOn value="2024-02-13"/> + <requester> + <reference value="Practitioner/8efee46a-9e29-4891-8e02-c13cf8ccdab2"/> + </requester> + <insurance> + <reference value="Coverage/a5c283ac-7053-4b12-a1df-0a50c23b2b80"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/output.json new file mode 100644 index 00000000..2e0e4521 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "dd6f3569-42e6-48b5-96ae-c8edb9cdd06d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.006.474.840.78" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-13" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "743c5319-ef29-4f42-a5c8-7c15ae17fff7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/bc711270-e8fb-419d-8923-43e3c5baadcb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-13", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bc711270-e8fb-419d-8923-43e3c5baadcb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "ed7d33a4-c113-4330-9917-9fd9206c794b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "629521522" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(09367) 7801199" + }, { + "system": "email", + "value": "zoé.horna@bos.net" + } ], + "address": [ { + "type": "both", + "line": [ "Fester Weg 0" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "0" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Fester Weg" + } ] + } ], + "city": "Maurergrün", + "postalCode": "89655", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "34170241-b935-479a-b3a4-036b09090535", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "887332180" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/output.xml new file mode 100644 index 00000000..f5045988 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_dd6f3569/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dd6f3569-42e6-48b5-96ae-c8edb9cdd06d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.006.474.840.78"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-13"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="743c5319-ef29-4f42-a5c8-7c15ae17fff7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bc711270-e8fb-419d-8923-43e3c5baadcb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-13"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bc711270-e8fb-419d-8923-43e3c5baadcb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ed7d33a4-c113-4330-9917-9fd9206c794b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="629521522"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(09367) 7801199"/> + </telecom> + <telecom> + <system value="email"/> + <value value="zoé.horna@bos.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Fester Weg 0"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="0"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Fester Weg"/> + </extension> + </line> + <city value="Maurergrün"/> + <postalCode value="89655"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="34170241-b935-479a-b3a4-036b09090535"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="887332180"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/input.xml new file mode 100644 index 00000000..c6a9d473 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="b0589d4c-31b6-4d94-9b5c-0e33c6e2eb89"/> + <meta> + <lastUpdated value="2024-02-08T19:13:42.368+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.695.62"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:13:42.368+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/34535cb4-e661-4585-9055-ba0127d9f9d4"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="34535cb4-e661-4585-9055-ba0127d9f9d4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1f617798-eef2-462d-b9ff-05ceb4f68496"/> + </subject> + <date value="2024-02-08T19:13:42+01:00"/> + <author> + <reference value="Practitioner/dc86b38e-7fb6-49a8-a49c-5d2d8ea5e8de"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/de2c01ea-22f6-48be-b959-7d472410f40e"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/0b11dc6f-75c1-4668-8f6c-74bb9fa97a5b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/42855b5a-a7c5-49ea-a29c-87da47c5c983"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/9adfbfc4-7b3c-49d1-9f6e-34f02761782e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9adfbfc4-7b3c-49d1-9f6e-34f02761782e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="14659553"/> + </coding> + <text value="Abaamisäure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/1f617798-eef2-462d-b9ff-05ceb4f68496"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1f617798-eef2-462d-b9ff-05ceb4f68496"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110499478"/> + </identifier> + <name> + <use value="official"/> + <family value="Bäcker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Bäcker"/> + </extension> + </family> + <given value="Hanna"/> + </name> + <birthDate value="1972-12-21"/> + <address> + <type value="both"/> + <line value="Heckenweg 59b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Heckenweg"/> + </extension> + </line> + <city value="Neu Sofie"/> + <postalCode value="56059"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/de2c01ea-22f6-48be-b959-7d472410f40e"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="de2c01ea-22f6-48be-b959-7d472410f40e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="461121725"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0442) 721610987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jason.schaffarzik@auer.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Lötzener Str. 44b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="44b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lötzener Str."/> + </extension> + </line> + <city value="West Juandorf"/> + <postalCode value="54462"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/0b11dc6f-75c1-4668-8f6c-74bb9fa97a5b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0b11dc6f-75c1-4668-8f6c-74bb9fa97a5b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="62"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/548580e4-5c40-4a70-9308-d59b46ec7663"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="103121013"/> + </identifier> + <display value="atlas BKK ahlmann"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/dc86b38e-7fb6-49a8-a49c-5d2d8ea5e8de"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="dc86b38e-7fb6-49a8-a49c-5d2d8ea5e8de"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="706769059"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/42855b5a-a7c5-49ea-a29c-87da47c5c983"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="42855b5a-a7c5-49ea-a29c-87da47c5c983"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9adfbfc4-7b3c-49d1-9f6e-34f02761782e"/> + </medicationReference> + <subject> + <reference value="Patient/1f617798-eef2-462d-b9ff-05ceb4f68496"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/dc86b38e-7fb6-49a8-a49c-5d2d8ea5e8de"/> + </requester> + <insurance> + <reference value="Coverage/0b11dc6f-75c1-4668-8f6c-74bb9fa97a5b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/output.json new file mode 100644 index 00000000..45e30392 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "e4726de8-e08b-4328-b075-54f75bec61ed", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "169.000.011.203.695.62" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e450276a-f2f0-4720-afab-bce46fba1f1f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7974c8eb-4482-4785-88b7-81a57331867f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7974c8eb-4482-4785-88b7-81a57331867f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "14659553" + } ], + "text": "Abaamisäure" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e44a0bc6-e04b-41cb-8194-9f6fc00e33b8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "461121725" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0442) 721610987" + }, { + "system": "email", + "value": "jason.schaffarzik@auer.name" + } ], + "address": [ { + "type": "both", + "line": [ "Lötzener Str. 44b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "44b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Lötzener Str." + } ] + } ], + "city": "West Juandorf", + "postalCode": "54462", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "21b10365-fc40-4a6b-8558-b12a3fbcf9e4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "706769059" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/output.xml new file mode 100644 index 00000000..66d34b52 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e4726de8/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e4726de8-e08b-4328-b075-54f75bec61ed"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="169.000.011.203.695.62"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e450276a-f2f0-4720-afab-bce46fba1f1f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7974c8eb-4482-4785-88b7-81a57331867f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7974c8eb-4482-4785-88b7-81a57331867f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="14659553"/> + </coding> + <text value="Abaamisäure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e44a0bc6-e04b-41cb-8194-9f6fc00e33b8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="461121725"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0442) 721610987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="jason.schaffarzik@auer.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Lötzener Str. 44b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="44b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Lötzener Str."/> + </extension> + </line> + <city value="West Juandorf"/> + <postalCode value="54462"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="21b10365-fc40-4a6b-8558-b12a3fbcf9e4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="706769059"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/input.xml new file mode 100644 index 00000000..4dcc0e71 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="80a43c33-4e81-416e-bb3d-6b3f8b418ccb"/> + <meta> + <lastUpdated value="2024-02-08T19:03:34.446+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.755.10"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:03:34.446+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/c86ebf52-9a51-4a00-b6cc-e0d70d6f93c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="c86ebf52-9a51-4a00-b6cc-e0d70d6f93c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/549721c8-9351-44dc-ad4c-d8da5f423c8d"/> + </subject> + <date value="2024-02-08T19:03:34+01:00"/> + <author> + <reference value="Practitioner/dfddbf73-b6e0-4ad3-a53f-b58338f9aa03"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/360fd110-471f-4679-867e-f09f28b2abe2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/004a57ab-d1ce-40b2-8af5-666266d21ca8"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/fb1d3d78-40c4-44fe-958d-f85792cdf96a"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/274d0577-ccd1-4083-b405-df2d8a71bb6e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="274d0577-ccd1-4083-b405-df2d8a71bb6e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/549721c8-9351-44dc-ad4c-d8da5f423c8d"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="549721c8-9351-44dc-ad4c-d8da5f423c8d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1994-11-24"/> + <address> + <type value="both"/> + <line value="Solinger Str. 92c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="92c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Solinger Str."/> + </extension> + </line> + <city value="Ost Xeniaberg"/> + <postalCode value="91505"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/360fd110-471f-4679-867e-f09f28b2abe2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="360fd110-471f-4679-867e-f09f28b2abe2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="737599264"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(08673) 2510563"/> + </telecom> + <telecom> + <system value="email"/> + <value value="nadine.karhoff@huckestein.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Erftstr. 57"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="57"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Erftstr."/> + </extension> + </line> + <city value="Lehmannstadt"/> + <postalCode value="05982"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/004a57ab-d1ce-40b2-8af5-666266d21ca8"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="004a57ab-d1ce-40b2-8af5-666266d21ca8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="48"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/51ee3db6-bebd-4a6a-be06-21fa15d98f53"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108534160"/> + </identifier> + <display value="Audi BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/dfddbf73-b6e0-4ad3-a53f-b58338f9aa03"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="dfddbf73-b6e0-4ad3-a53f-b58338f9aa03"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="408698026"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/fb1d3d78-40c4-44fe-958d-f85792cdf96a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fb1d3d78-40c4-44fe-958d-f85792cdf96a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/274d0577-ccd1-4083-b405-df2d8a71bb6e"/> + </medicationReference> + <subject> + <reference value="Patient/549721c8-9351-44dc-ad4c-d8da5f423c8d"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/dfddbf73-b6e0-4ad3-a53f-b58338f9aa03"/> + </requester> + <insurance> + <reference value="Coverage/004a57ab-d1ce-40b2-8af5-666266d21ca8"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/output.json new file mode 100644 index 00000000..c274c525 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "e55e8bba-84f4-4073-b62e-f31dca2a6684", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.755.10" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7817c6bc-0c90-4962-9319-d0cfb83c54f8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a22aadff-68de-4612-925e-692e632d86a7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a22aadff-68de-4612-925e-692e632d86a7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9daf0953-0717-4ed6-b411-64dc421307f9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "737599264" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(08673) 2510563" + }, { + "system": "email", + "value": "nadine.karhoff@huckestein.com" + } ], + "address": [ { + "type": "both", + "line": [ "Erftstr. 57" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "57" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Erftstr." + } ] + } ], + "city": "Lehmannstadt", + "postalCode": "05982", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "1fcf58f6-0bb1-49b8-9943-3ae1568c274f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "408698026" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/output.xml new file mode 100644 index 00000000..3058232b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_e55e8bba/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e55e8bba-84f4-4073-b62e-f31dca2a6684"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.755.10"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7817c6bc-0c90-4962-9319-d0cfb83c54f8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a22aadff-68de-4612-925e-692e632d86a7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a22aadff-68de-4612-925e-692e632d86a7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9daf0953-0717-4ed6-b411-64dc421307f9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="737599264"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(08673) 2510563"/> + </telecom> + <telecom> + <system value="email"/> + <value value="nadine.karhoff@huckestein.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Erftstr. 57"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="57"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Erftstr."/> + </extension> + </line> + <city value="Lehmannstadt"/> + <postalCode value="05982"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1fcf58f6-0bb1-49b8-9943-3ae1568c274f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="408698026"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/input.xml new file mode 100644 index 00000000..139e6959 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="df6aff69-7c99-4c89-b521-e4c719b432b1"/> + <meta> + <lastUpdated value="2024-02-08T19:10:14.074+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.992.43"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:10:14.074+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/0faef688-fb15-44f0-b1e0-31f87b57ad7d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="0faef688-fb15-44f0-b1e0-31f87b57ad7d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/52254960-7125-45fd-ad1e-284d204bd109"/> + </subject> + <date value="2024-02-08T19:10:14+01:00"/> + <author> + <reference value="Practitioner/7eafa5d5-5b17-46e0-b08f-a02308ce7201"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/a2b2f4a1-55ff-4158-b237-032fdce6f518"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/0836d48f-27c9-471c-a4b3-2462ccf517ce"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/b5e78edf-dcbb-4d87-8705-ce8c62fe1d93"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/85a25048-7786-4637-9c37-9285dc1721f8"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="85a25048-7786-4637-9c37-9285dc1721f8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="26702202"/> + </coding> + <text value="Famimoor"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/52254960-7125-45fd-ad1e-284d204bd109"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="52254960-7125-45fd-ad1e-284d204bd109"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1989-12-18"/> + <address> + <type value="both"/> + <line value="Adolf-Baeyer-Str. 7"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="7"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Adolf-Baeyer-Str."/> + </extension> + </line> + <city value="Bad Annikaland"/> + <postalCode value="90666"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/a2b2f4a1-55ff-4158-b237-032fdce6f518"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a2b2f4a1-55ff-4158-b237-032fdce6f518"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="179250867"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02967) 0711010"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lennard.barr@bruhns.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Schenkendorfstr. 77"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="77"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schenkendorfstr."/> + </extension> + </line> + <city value="Kummlegrün"/> + <postalCode value="49648"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/0836d48f-27c9-471c-a4b3-2462ccf517ce"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="0836d48f-27c9-471c-a4b3-2462ccf517ce"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="60"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/2f973722-18ac-4309-81ce-5e3ef2547fd7"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141358"/> + </identifier> + <display value="Provinzial"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/7eafa5d5-5b17-46e0-b08f-a02308ce7201"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7eafa5d5-5b17-46e0-b08f-a02308ce7201"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="705332588"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/b5e78edf-dcbb-4d87-8705-ce8c62fe1d93"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b5e78edf-dcbb-4d87-8705-ce8c62fe1d93"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:e4521c66-ca29-43a8-bb2c-9a6ffdec4e5f"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/85a25048-7786-4637-9c37-9285dc1721f8"/> + </medicationReference> + <subject> + <reference value="Patient/52254960-7125-45fd-ad1e-284d204bd109"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/7eafa5d5-5b17-46e0-b08f-a02308ce7201"/> + </requester> + <insurance> + <reference value="Coverage/0836d48f-27c9-471c-a4b3-2462ccf517ce"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/output.json new file mode 100644 index 00000000..4d9974f3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "f25d9001-aabc-4cca-a1b9-c299c485ae61", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.992.43" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6bf5a19b-dadc-4dd5-beb4-98fb2718b71f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-04" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:e4521c66-ca29-43a8-bb2c-9a6ffdec4e5f" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a2434c37-14e0-4e37-b68d-8d2d5db16bbc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a2434c37-14e0-4e37-b68d-8d2d5db16bbc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "26702202" + } ], + "text": "Famimoor" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "62cf5712-bd66-4275-9be1-f607aade06f9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "179250867" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(02967) 0711010" + }, { + "system": "email", + "value": "lennard.barr@bruhns.net" + } ], + "address": [ { + "type": "both", + "line": [ "Schenkendorfstr. 77" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "77" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Schenkendorfstr." + } ] + } ], + "city": "Kummlegrün", + "postalCode": "49648", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "3c1bead4-257b-41e3-a956-82282333e4a8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "705332588" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/output.xml new file mode 100644 index 00000000..cb45b206 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f25d9001/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f25d9001-aabc-4cca-a1b9-c299c485ae61"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.992.43"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6bf5a19b-dadc-4dd5-beb4-98fb2718b71f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:e4521c66-ca29-43a8-bb2c-9a6ffdec4e5f"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a2434c37-14e0-4e37-b68d-8d2d5db16bbc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a2434c37-14e0-4e37-b68d-8d2d5db16bbc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="26702202"/> + </coding> + <text value="Famimoor"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="62cf5712-bd66-4275-9be1-f607aade06f9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="179250867"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02967) 0711010"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lennard.barr@bruhns.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Schenkendorfstr. 77"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="77"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schenkendorfstr."/> + </extension> + </line> + <city value="Kummlegrün"/> + <postalCode value="49648"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="3c1bead4-257b-41e3-a956-82282333e4a8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="705332588"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/input.xml new file mode 100644 index 00000000..ad6bac29 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7fe0b57d-61d6-4558-b046-c4f0e73b2a47"/> + <meta> + <lastUpdated value="2024-02-08T19:21:44.108+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.997.28"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:21:44.108+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/f7ecac09-2bf7-4bbf-ac3f-8bf43334bfa4"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f7ecac09-2bf7-4bbf-ac3f-8bf43334bfa4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1a9cd29f-4d36-45e9-842e-f3c48ed17b4d"/> + </subject> + <date value="2024-02-08T19:21:44+01:00"/> + <author> + <reference value="Practitioner/fb33dff7-80fa-4003-8118-0280c8fca8c0"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/309a6e0e-b207-481f-94b8-1bccffadb5e9"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/3708ac3a-800b-4387-89c7-e64fabc7bd86"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/699b279d-58ac-4fbb-badb-8b72e709f5aa"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/f9dc8f1f-2f3f-4952-810e-a4fefe76d845"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f9dc8f1f-2f3f-4952-810e-a4fefe76d845"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64536028"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/1a9cd29f-4d36-45e9-842e-f3c48ed17b4d"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1a9cd29f-4d36-45e9-842e-f3c48ed17b4d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1969-04-26"/> + <address> + <type value="both"/> + <line value="Rathenaustr. 453"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="453"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Rathenaustr."/> + </extension> + </line> + <city value="Neumairheim"/> + <postalCode value="58976"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/309a6e0e-b207-481f-94b8-1bccffadb5e9"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="309a6e0e-b207-481f-94b8-1bccffadb5e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="529873977"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-479-7901020"/> + </telecom> + <telecom> + <system value="email"/> + <value value="dana.meisch@kolokas.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Bohofsweg 52"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="52"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bohofsweg"/> + </extension> + </line> + <city value="Winterhagen"/> + <postalCode value="08005"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/3708ac3a-800b-4387-89c7-e64fabc7bd86"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="3708ac3a-800b-4387-89c7-e64fabc7bd86"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="55"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fbbf0125-52c2-4738-8153-a099b11b8062"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140346"/> + </identifier> + <display value="Allianz"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/fb33dff7-80fa-4003-8118-0280c8fca8c0"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="fb33dff7-80fa-4003-8118-0280c8fca8c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="866731615"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/699b279d-58ac-4fbb-badb-8b72e709f5aa"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="699b279d-58ac-4fbb-badb-8b72e709f5aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f9dc8f1f-2f3f-4952-810e-a4fefe76d845"/> + </medicationReference> + <subject> + <reference value="Patient/1a9cd29f-4d36-45e9-842e-f3c48ed17b4d"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/fb33dff7-80fa-4003-8118-0280c8fca8c0"/> + </requester> + <insurance> + <reference value="Coverage/3708ac3a-800b-4387-89c7-e64fabc7bd86"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/output.json new file mode 100644 index 00000000..596c325c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "f276a8fc-ea58-4b5f-b44f-1f8cc89afa22", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.032.997.28" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b83c1d8f-5522-4be7-b48b-3ee711e3a7b4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/68a8f9d1-6117-46a4-adb2-0f6876d99895" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "68a8f9d1-6117-46a4-adb2-0f6876d99895", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "64536028" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5ef86a81-de3d-4440-81ac-5c7e6ff3b9db", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "529873977" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-479-7901020" + }, { + "system": "email", + "value": "dana.meisch@kolokas.de" + } ], + "address": [ { + "type": "both", + "line": [ "Bohofsweg 52" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "52" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Bohofsweg" + } ] + } ], + "city": "Winterhagen", + "postalCode": "08005", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b947bda7-71b1-46d7-aa15-ca31f05d449a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "866731615" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/output.xml new file mode 100644 index 00000000..90c552c8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f276a8fc/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f276a8fc-ea58-4b5f-b44f-1f8cc89afa22"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.032.997.28"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b83c1d8f-5522-4be7-b48b-3ee711e3a7b4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/68a8f9d1-6117-46a4-adb2-0f6876d99895"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="68a8f9d1-6117-46a4-adb2-0f6876d99895"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64536028"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5ef86a81-de3d-4440-81ac-5c7e6ff3b9db"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="529873977"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-479-7901020"/> + </telecom> + <telecom> + <system value="email"/> + <value value="dana.meisch@kolokas.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Bohofsweg 52"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="52"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bohofsweg"/> + </extension> + </line> + <city value="Winterhagen"/> + <postalCode value="08005"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b947bda7-71b1-46d7-aa15-ca31f05d449a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="866731615"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/input.xml new file mode 100644 index 00000000..dc3a9429 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="0b82f30f-d202-4265-b67b-b006aae38508"/> + <meta> + <lastUpdated value="2024-02-08T19:00:59.172+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.741.52"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:00:59.172+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/54264cc8-e341-4f2a-830b-73ce4ebe3fee"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="54264cc8-e341-4f2a-830b-73ce4ebe3fee"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/84410e1d-2bde-4d00-b864-87cf36148570"/> + </subject> + <date value="2024-02-08T19:00:59+01:00"/> + <author> + <reference value="Practitioner/a6093dc1-c270-416b-81df-e6d1e03b2be4"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/f208da4f-33b8-475a-a03e-a613f9844242"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/d36ffcbc-e76e-4b6d-851e-c8dee4efcbe4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/04f62e64-c657-474e-9720-7753014a0140"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/887e8ad6-60f7-4c0d-bca3-62e1a79b7946"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="887e8ad6-60f7-4c0d-bca3-62e1a79b7946"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/84410e1d-2bde-4d00-b864-87cf36148570"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="84410e1d-2bde-4d00-b864-87cf36148570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1979-08-19"/> + <address> + <type value="both"/> + <line value="Morsbroicher Str. 09a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="09a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Morsbroicher Str."/> + </extension> + </line> + <city value="Pierrehagen"/> + <postalCode value="65089"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/f208da4f-33b8-475a-a03e-a613f9844242"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f208da4f-33b8-475a-a03e-a613f9844242"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="201216337"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0734) 924483515"/> + </telecom> + <telecom> + <system value="email"/> + <value value="marah.jahnke@kleinmann.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Dechant-Fein-Str. 29b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dechant-Fein-Str."/> + </extension> + </line> + <city value="Burgerburg"/> + <postalCode value="36436"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/d36ffcbc-e76e-4b6d-851e-c8dee4efcbe4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="d36ffcbc-e76e-4b6d-851e-c8dee4efcbe4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="51"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/bf18407c-af34-4ca8-b314-fecf9a8a6873"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="100820488"/> + </identifier> + <display value="Brandenburgische BKK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/a6093dc1-c270-416b-81df-e6d1e03b2be4"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a6093dc1-c270-416b-81df-e6d1e03b2be4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="890977542"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/04f62e64-c657-474e-9720-7753014a0140"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="04f62e64-c657-474e-9720-7753014a0140"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/887e8ad6-60f7-4c0d-bca3-62e1a79b7946"/> + </medicationReference> + <subject> + <reference value="Patient/84410e1d-2bde-4d00-b864-87cf36148570"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/a6093dc1-c270-416b-81df-e6d1e03b2be4"/> + </requester> + <insurance> + <reference value="Coverage/d36ffcbc-e76e-4b6d-851e-c8dee4efcbe4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/output.json new file mode 100644 index 00000000..3e3e17dd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "f4c61557-9f40-4075-b414-3da89772b658", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.741.52" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "63468889-5741-42ba-8c05-1780efe3b63f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f5fc44ed-6e62-42c8-8dd9-d78514f62a41" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f5fc44ed-6e62-42c8-8dd9-d78514f62a41", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a9987faf-9a1c-4316-ada5-37fd83bbac82", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "201216337" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0734) 924483515" + }, { + "system": "email", + "value": "marah.jahnke@kleinmann.org" + } ], + "address": [ { + "type": "both", + "line": [ "Dechant-Fein-Str. 29b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "29b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Dechant-Fein-Str." + } ] + } ], + "city": "Burgerburg", + "postalCode": "36436", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "09c570e0-4c18-4d60-9526-71c8ebe44475", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "890977542" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/output.xml new file mode 100644 index 00000000..56591758 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f4c61557/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f4c61557-9f40-4075-b414-3da89772b658"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.741.52"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="63468889-5741-42ba-8c05-1780efe3b63f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f5fc44ed-6e62-42c8-8dd9-d78514f62a41"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f5fc44ed-6e62-42c8-8dd9-d78514f62a41"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a9987faf-9a1c-4316-ada5-37fd83bbac82"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="201216337"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0734) 924483515"/> + </telecom> + <telecom> + <system value="email"/> + <value value="marah.jahnke@kleinmann.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Dechant-Fein-Str. 29b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dechant-Fein-Str."/> + </extension> + </line> + <city value="Burgerburg"/> + <postalCode value="36436"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="09c570e0-4c18-4d60-9526-71c8ebe44475"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="890977542"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/input.xml new file mode 100644 index 00000000..3a345697 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="62dd6004-911c-4312-b5f9-01a97a22231a"/> + <meta> + <lastUpdated value="2024-02-08T19:05:39.806+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.767.71"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:05:39.806+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/d8d85bd8-4be9-49ae-9e01-929cf2f01692"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d8d85bd8-4be9-49ae-9e01-929cf2f01692"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/02207aa1-0e1a-4ebf-a13e-902a88a2232f"/> + </subject> + <date value="2024-02-08T19:05:39+01:00"/> + <author> + <reference value="Practitioner/2418c248-197a-4769-9a89-e7a12b904248"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/cff57283-d52a-4790-81f9-a24c9af1cb84"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/763a27fb-d4c2-4193-bc7a-e4873b82ceca"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/8e6a333f-e4fa-4054-a2f9-0dece956db9c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/17218abd-f3d7-4770-82e6-0d2a65c1463f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="17218abd-f3d7-4770-82e6-0d2a65c1463f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/02207aa1-0e1a-4ebf-a13e-902a88a2232f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="02207aa1-0e1a-4ebf-a13e-902a88a2232f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1975-07-07"/> + <address> + <type value="both"/> + <line value="Pastor-Scheibler-Str. 71c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="71c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pastor-Scheibler-Str."/> + </extension> + </line> + <city value="West Henriettedorf"/> + <postalCode value="83812"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/cff57283-d52a-4790-81f9-a24c9af1cb84"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cff57283-d52a-4790-81f9-a24c9af1cb84"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="021082808"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-4306-82643876"/> + </telecom> + <telecom> + <system value="email"/> + <value value="friederike.raukuc@ruch.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Kolberger Str. 4"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="4"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kolberger Str."/> + </extension> + </line> + <city value="Ferdinandfeld"/> + <postalCode value="34234"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/763a27fb-d4c2-4193-bc7a-e4873b82ceca"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="763a27fb-d4c2-4193-bc7a-e4873b82ceca"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="50"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/97275e3f-b916-46f6-8a31-fee2f4439bb9"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="107829563"/> + </identifier> + <display value="BKK ZF und Partner"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/2418c248-197a-4769-9a89-e7a12b904248"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2418c248-197a-4769-9a89-e7a12b904248"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="489959499"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/8e6a333f-e4fa-4054-a2f9-0dece956db9c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8e6a333f-e4fa-4054-a2f9-0dece956db9c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/17218abd-f3d7-4770-82e6-0d2a65c1463f"/> + </medicationReference> + <subject> + <reference value="Patient/02207aa1-0e1a-4ebf-a13e-902a88a2232f"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/2418c248-197a-4769-9a89-e7a12b904248"/> + </requester> + <insurance> + <reference value="Coverage/763a27fb-d4c2-4193-bc7a-e4873b82ceca"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/output.json new file mode 100644 index 00000000..26739a1b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "f8d80421-595d-4ea1-a815-b18d2f411fcc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.767.71" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a160023a-f08b-4680-906c-2b7c2f22e3ae", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4d5138a7-780e-43d6-8e51-ea5c8f9abe38" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4d5138a7-780e-43d6-8e51-ea5c8f9abe38", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a9680f6c-915f-4235-a521-caaaad0d8121", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "021082808" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-4306-82643876" + }, { + "system": "email", + "value": "friederike.raukuc@ruch.name" + } ], + "address": [ { + "type": "both", + "line": [ "Kolberger Str. 4" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "4" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Kolberger Str." + } ] + } ], + "city": "Ferdinandfeld", + "postalCode": "34234", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ce274c5d-17c7-42d7-8188-543131700499", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "489959499" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/output.xml new file mode 100644 index 00000000..89c8dd6a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_f8d80421/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f8d80421-595d-4ea1-a815-b18d2f411fcc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.767.71"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a160023a-f08b-4680-906c-2b7c2f22e3ae"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4d5138a7-780e-43d6-8e51-ea5c8f9abe38"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4d5138a7-780e-43d6-8e51-ea5c8f9abe38"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a9680f6c-915f-4235-a521-caaaad0d8121"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="021082808"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-4306-82643876"/> + </telecom> + <telecom> + <system value="email"/> + <value value="friederike.raukuc@ruch.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Kolberger Str. 4"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="4"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kolberger Str."/> + </extension> + </line> + <city value="Ferdinandfeld"/> + <postalCode value="34234"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ce274c5d-17c7-42d7-8188-543131700499"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="489959499"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/input.xml new file mode 100644 index 00000000..1f951f85 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="14d9b2f3-703f-4594-a1b0-2fe191807de1"/> + <meta> + <lastUpdated value="2024-02-08T19:02:33.116+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.749.28"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:02:33.116+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/a2571a0b-53e1-47d8-aa8b-8f79d912fc72"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a2571a0b-53e1-47d8-aa8b-8f79d912fc72"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1fc6b1c0-065e-4663-b74a-73ccc37bc52a"/> + </subject> + <date value="2024-02-08T19:02:33+01:00"/> + <author> + <reference value="Practitioner/55c787f7-cb59-4885-9aa5-dc8b35bb4967"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/32bd0c3e-9456-46ab-a38d-a27b046b07d5"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/2b050bc9-828f-436d-b1d8-2ae1fa5c0845"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/a711b573-ad5d-4190-88f3-13a3c94ee456"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/ceb6982b-7e26-4b24-988e-c8183306965f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ceb6982b-7e26-4b24-988e-c8183306965f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/1fc6b1c0-065e-4663-b74a-73ccc37bc52a"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1fc6b1c0-065e-4663-b74a-73ccc37bc52a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1973-02-11"/> + <address> + <type value="both"/> + <line value="Friedenberger Str. 89c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="89c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Friedenberger Str."/> + </extension> + </line> + <city value="West Jacqueline"/> + <postalCode value="85160"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/32bd0c3e-9456-46ab-a38d-a27b046b07d5"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="32bd0c3e-9456-46ab-a38d-a27b046b07d5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="483945359"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0980) 607271140"/> + </telecom> + <telecom> + <system value="email"/> + <value value="robert.gunther@ranz.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Hemmelrather Hof 59a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Hemmelrather Hof"/> + </extension> + </line> + <city value="Honzburg"/> + <postalCode value="40382"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/2b050bc9-828f-436d-b1d8-2ae1fa5c0845"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="2b050bc9-828f-436d-b1d8-2ae1fa5c0845"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/9cb9d8a3-8c4b-42ea-b577-d7d7473f77d6"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101532301"/> + </identifier> + <display value="BKK Beiersdorf AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/55c787f7-cb59-4885-9aa5-dc8b35bb4967"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="55c787f7-cb59-4885-9aa5-dc8b35bb4967"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="768593806"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/a711b573-ad5d-4190-88f3-13a3c94ee456"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a711b573-ad5d-4190-88f3-13a3c94ee456"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ceb6982b-7e26-4b24-988e-c8183306965f"/> + </medicationReference> + <subject> + <reference value="Patient/1fc6b1c0-065e-4663-b74a-73ccc37bc52a"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/55c787f7-cb59-4885-9aa5-dc8b35bb4967"/> + </requester> + <insurance> + <reference value="Coverage/2b050bc9-828f-436d-b1d8-2ae1fa5c0845"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/output.json new file mode 100644 index 00000000..4e4a260f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "feff6e76-432b-4d57-b36d-5831a87a00a6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.749.28" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d2a9e081-4df5-4872-be3c-6b19e650194e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7cb0f074-2d66-45c1-a2a5-5beb59e8373b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7cb0f074-2d66-45c1-a2a5-5beb59e8373b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0a9bf779-9140-4a75-83d3-4b51229dc35b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "483945359" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0980) 607271140" + }, { + "system": "email", + "value": "robert.gunther@ranz.com" + } ], + "address": [ { + "type": "both", + "line": [ "Am Hemmelrather Hof 59a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "59a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Am Hemmelrather Hof" + } ] + } ], + "city": "Honzburg", + "postalCode": "40382", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "09125735-9eed-4b9a-aae9-8eeea7bbbc4e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "768593806" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/output.xml new file mode 100644 index 00000000..a58fa3e1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/002_document_to_sign_feff6e76/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="feff6e76-432b-4d57-b36d-5831a87a00a6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.749.28"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d2a9e081-4df5-4872-be3c-6b19e650194e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7cb0f074-2d66-45c1-a2a5-5beb59e8373b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7cb0f074-2d66-45c1-a2a5-5beb59e8373b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0a9bf779-9140-4a75-83d3-4b51229dc35b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="483945359"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0980) 607271140"/> + </telecom> + <telecom> + <system value="email"/> + <value value="robert.gunther@ranz.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Hemmelrather Hof 59a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Hemmelrather Hof"/> + </extension> + </line> + <city value="Honzburg"/> + <postalCode value="40382"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="09125735-9eed-4b9a-aae9-8eeea7bbbc4e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="768593806"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/input.xml new file mode 100644 index 00000000..ed1220c4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="12875f19-4ec7-43bc-bb33-49623c4c49c7"/> + <meta> + <lastUpdated value="2024-02-08T19:19:52.701+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.551.92"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:19:52.701+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/cbca23f4-de51-40e4-93d5-22583c150825"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="cbca23f4-de51-40e4-93d5-22583c150825"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/10e04bf9-7dbb-4f7c-b7e8-ba30cc1f5f59"/> + </subject> + <date value="2024-02-08T19:19:52+01:00"/> + <author> + <reference value="Practitioner/926c1860-0e31-4e42-be25-2addc1d60628"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/43c3e556-b5df-4b56-999c-4243632414a9"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/fe67628e-3d4f-4801-af31-bce9f8d4f745"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/5020186d-4525-4895-847e-77fafdce7a7c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/6f39c3e2-e2c8-41d1-ba0b-165f8eb2d72b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6f39c3e2-e2c8-41d1-ba0b-165f8eb2d72b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="30978281"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/10e04bf9-7dbb-4f7c-b7e8-ba30cc1f5f59"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="10e04bf9-7dbb-4f7c-b7e8-ba30cc1f5f59"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2005-10-08"/> + <address> + <type value="both"/> + <line value="Kolmarer Str. 992"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="992"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kolmarer Str."/> + </extension> + </line> + <city value="Svenjaheim"/> + <postalCode value="21472"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/43c3e556-b5df-4b56-999c-4243632414a9"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="43c3e556-b5df-4b56-999c-4243632414a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="037278962"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0018) 308308710"/> + </telecom> + <telecom> + <system value="email"/> + <value value="adriano.schlawitz@leibold.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Julius-Leber-Str. 29b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Julius-Leber-Str."/> + </extension> + </line> + <city value="Groß Edgarbrunn"/> + <postalCode value="70481"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/fe67628e-3d4f-4801-af31-bce9f8d4f745"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="fe67628e-3d4f-4801-af31-bce9f8d4f745"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="46"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/4345d7e4-88dc-40a3-847e-a8894b0fa3b4"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141358"/> + </identifier> + <display value="Provinzial"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/926c1860-0e31-4e42-be25-2addc1d60628"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="926c1860-0e31-4e42-be25-2addc1d60628"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="250084958"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/5020186d-4525-4895-847e-77fafdce7a7c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5020186d-4525-4895-847e-77fafdce7a7c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6f39c3e2-e2c8-41d1-ba0b-165f8eb2d72b"/> + </medicationReference> + <subject> + <reference value="Patient/10e04bf9-7dbb-4f7c-b7e8-ba30cc1f5f59"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/926c1860-0e31-4e42-be25-2addc1d60628"/> + </requester> + <insurance> + <reference value="Coverage/fe67628e-3d4f-4801-af31-bce9f8d4f745"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/output.json new file mode 100644 index 00000000..71ca2a8c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "004ef082-6a5a-437a-a17d-e84b521b1e46", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.551.92" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "66b4bbbf-a8ff-4238-a7d9-a79642aa0403", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f13e77e0-e552-4277-830b-d06858665425" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f13e77e0-e552-4277-830b-d06858665425", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "30978281" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "00711feb-cbbf-4872-922a-d34c2d4e340a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "037278962" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0018) 308308710" + }, { + "system": "email", + "value": "adriano.schlawitz@leibold.info" + } ], + "address": [ { + "type": "both", + "line": [ "Julius-Leber-Str. 29b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "29b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Julius-Leber-Str." + } ] + } ], + "city": "Groß Edgarbrunn", + "postalCode": "70481", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e218e136-0b48-4f59-b698-88a86dd2a122", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "250084958" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/output.xml new file mode 100644 index 00000000..ca8dfaf3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_004ef082/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="004ef082-6a5a-437a-a17d-e84b521b1e46"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.551.92"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="66b4bbbf-a8ff-4238-a7d9-a79642aa0403"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f13e77e0-e552-4277-830b-d06858665425"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f13e77e0-e552-4277-830b-d06858665425"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="30978281"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="00711feb-cbbf-4872-922a-d34c2d4e340a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="037278962"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0018) 308308710"/> + </telecom> + <telecom> + <system value="email"/> + <value value="adriano.schlawitz@leibold.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Julius-Leber-Str. 29b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="29b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Julius-Leber-Str."/> + </extension> + </line> + <city value="Groß Edgarbrunn"/> + <postalCode value="70481"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e218e136-0b48-4f59-b698-88a86dd2a122"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="250084958"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/input.xml new file mode 100644 index 00000000..0f2f768e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c44d90eb-1775-4ee5-a376-12c50d53fb10"/> + <meta> + <lastUpdated value="2024-02-08T19:15:41.066+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.532.52"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:15:41.066+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/384768c2-20d7-464d-af6a-5f13e47018e6"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="384768c2-20d7-464d-af6a-5f13e47018e6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/b8d71e9c-3309-4c87-a007-44e5d77c2da0"/> + </subject> + <date value="2024-02-08T19:15:41+01:00"/> + <author> + <reference value="Practitioner/c89ed67d-4e1b-4c56-a5c8-8c9fc6a4e092"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/e6f15b23-161f-4065-b903-10dd335c28d2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/b42b2f49-2370-4b4c-95a6-394e444e9edc"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/3d6d6d77-716a-462e-9f9c-974f4e838ec2"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/4c7680d4-c589-4ca4-b6d6-bf1a7e1310a9"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4c7680d4-c589-4ca4-b6d6-bf1a7e1310a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="22477205"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/b8d71e9c-3309-4c87-a007-44e5d77c2da0"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="b8d71e9c-3309-4c87-a007-44e5d77c2da0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1989-05-22"/> + <address> + <type value="both"/> + <line value="Auf der Weide 809"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="809"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Auf der Weide"/> + </extension> + </line> + <city value="Bad Finjaland"/> + <postalCode value="83495"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/e6f15b23-161f-4065-b903-10dd335c28d2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e6f15b23-161f-4065-b903-10dd335c28d2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="383269360"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(01048) 7836562"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mirac.cleem@schonberg.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Goethestr. 54c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="54c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Goethestr."/> + </extension> + </line> + <city value="Lindenmayerberg"/> + <postalCode value="10316"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/b42b2f49-2370-4b4c-95a6-394e444e9edc"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="b42b2f49-2370-4b4c-95a6-394e444e9edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="98"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/05d32a16-bd0b-4254-9d09-1c68b3f9646d"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="950686021"/> + </identifier> + <display value="KVB Krankenversorgung der Bundesbahnbeamten"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/c89ed67d-4e1b-4c56-a5c8-8c9fc6a4e092"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c89ed67d-4e1b-4c56-a5c8-8c9fc6a4e092"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="735114655"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/3d6d6d77-716a-462e-9f9c-974f4e838ec2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3d6d6d77-716a-462e-9f9c-974f4e838ec2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4c7680d4-c589-4ca4-b6d6-bf1a7e1310a9"/> + </medicationReference> + <subject> + <reference value="Patient/b8d71e9c-3309-4c87-a007-44e5d77c2da0"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/c89ed67d-4e1b-4c56-a5c8-8c9fc6a4e092"/> + </requester> + <insurance> + <reference value="Coverage/b42b2f49-2370-4b4c-95a6-394e444e9edc"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/output.json new file mode 100644 index 00000000..89ec4b19 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "1e697f5a-1a19-444a-be8b-acba986d27d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.532.52" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "911b9735-430a-4ba3-abaa-b54a9ee523c3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/809b6c79-0ed9-4cd5-a8c6-0851b206a7a0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "809b6c79-0ed9-4cd5-a8c6-0851b206a7a0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "22477205" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "89efb289-6ed1-44f1-9455-576c7d5d8947", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "383269360" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(01048) 7836562" + }, { + "system": "email", + "value": "mirac.cleem@schonberg.net" + } ], + "address": [ { + "type": "both", + "line": [ "Goethestr. 54c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "54c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Goethestr." + } ] + } ], + "city": "Lindenmayerberg", + "postalCode": "10316", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "0ba19894-1d16-415e-bf3e-a13202741dee", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "735114655" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/output.xml new file mode 100644 index 00000000..c29c73c1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_1e697f5a/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1e697f5a-1a19-444a-be8b-acba986d27d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.532.52"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="911b9735-430a-4ba3-abaa-b54a9ee523c3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/809b6c79-0ed9-4cd5-a8c6-0851b206a7a0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="809b6c79-0ed9-4cd5-a8c6-0851b206a7a0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="22477205"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="89efb289-6ed1-44f1-9455-576c7d5d8947"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="383269360"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(01048) 7836562"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mirac.cleem@schonberg.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Goethestr. 54c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="54c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Goethestr."/> + </extension> + </line> + <city value="Lindenmayerberg"/> + <postalCode value="10316"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0ba19894-1d16-415e-bf3e-a13202741dee"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="735114655"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/input.xml new file mode 100644 index 00000000..dbda7788 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="4d68c364-8926-44de-8ffd-b17756755efa"/> + <meta> + <lastUpdated value="2024-02-08T19:16:08.099+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.534.46"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:16:08.099+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/e0534847-3b69-4376-b26a-9e8926ebc358"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="e0534847-3b69-4376-b26a-9e8926ebc358"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ecfda365-3e4d-442a-b719-7486263cdcb1"/> + </subject> + <date value="2024-02-08T19:16:08+01:00"/> + <author> + <reference value="Practitioner/dcfc70e3-d76d-4447-b3a2-0a804192ce30"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/afab3d62-28ee-4284-9d70-1ffa7a9063ce"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/3109df5c-12dd-42fa-b1b5-8a3f6837177e"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/5f4ea0dc-b9de-4039-8540-728b644b0ae6"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/59b53a09-4763-4725-84a9-481f0a2cdb00"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="59b53a09-4763-4725-84a9-481f0a2cdb00"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="24025068"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/ecfda365-3e4d-442a-b719-7486263cdcb1"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ecfda365-3e4d-442a-b719-7486263cdcb1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1980-05-13"/> + <address> + <type value="both"/> + <line value="Herderstr. 94"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="94"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herderstr."/> + </extension> + </line> + <city value="Alt Nikitastadt"/> + <postalCode value="45836"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/afab3d62-28ee-4284-9d70-1ffa7a9063ce"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="afab3d62-28ee-4284-9d70-1ffa7a9063ce"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="469332828"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8724-61741673"/> + </telecom> + <telecom> + <system value="email"/> + <value value="alan.tillack@matthes.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Habichtgasse 07a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="07a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Habichtgasse"/> + </extension> + </line> + <city value="Lunaburg"/> + <postalCode value="21832"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/3109df5c-12dd-42fa-b1b5-8a3f6837177e"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="3109df5c-12dd-42fa-b1b5-8a3f6837177e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="46"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/d400898a-135d-4146-891c-da9424a053f9"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141096"/> + </identifier> + <display value="LVM"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/dcfc70e3-d76d-4447-b3a2-0a804192ce30"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="dcfc70e3-d76d-4447-b3a2-0a804192ce30"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="382278094"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/5f4ea0dc-b9de-4039-8540-728b644b0ae6"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5f4ea0dc-b9de-4039-8540-728b644b0ae6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/59b53a09-4763-4725-84a9-481f0a2cdb00"/> + </medicationReference> + <subject> + <reference value="Patient/ecfda365-3e4d-442a-b719-7486263cdcb1"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/dcfc70e3-d76d-4447-b3a2-0a804192ce30"/> + </requester> + <insurance> + <reference value="Coverage/3109df5c-12dd-42fa-b1b5-8a3f6837177e"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/output.json new file mode 100644 index 00000000..8e4399bb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "39ea3447-257d-48bf-9d8e-b3375ad82cbf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.534.46" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "cdf78ed4-e25f-4d61-a99a-d149296c5aaf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/52a586d2-610e-43d1-91e1-7b08fb7222cf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "52a586d2-610e-43d1-91e1-7b08fb7222cf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "24025068" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9f21fc75-83f3-437a-b8a7-b90a294494a3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "469332828" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-8724-61741673" + }, { + "system": "email", + "value": "alan.tillack@matthes.de" + } ], + "address": [ { + "type": "both", + "line": [ "Habichtgasse 07a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "07a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Habichtgasse" + } ] + } ], + "city": "Lunaburg", + "postalCode": "21832", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d1d1a93f-b530-4b47-b381-8b8b88a2023b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "382278094" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/output.xml new file mode 100644 index 00000000..0cf77342 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_39ea3447/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="39ea3447-257d-48bf-9d8e-b3375ad82cbf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.534.46"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="cdf78ed4-e25f-4d61-a99a-d149296c5aaf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/52a586d2-610e-43d1-91e1-7b08fb7222cf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="52a586d2-610e-43d1-91e1-7b08fb7222cf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="24025068"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9f21fc75-83f3-437a-b8a7-b90a294494a3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="469332828"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8724-61741673"/> + </telecom> + <telecom> + <system value="email"/> + <value value="alan.tillack@matthes.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Habichtgasse 07a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="07a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Habichtgasse"/> + </extension> + </line> + <city value="Lunaburg"/> + <postalCode value="21832"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d1d1a93f-b530-4b47-b381-8b8b88a2023b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="382278094"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/input.xml new file mode 100644 index 00000000..e13b101d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6b244b96-f0a8-4e31-b739-9998ba4f667a"/> + <meta> + <lastUpdated value="2024-02-08T19:15:57.560+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.533.49"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:15:57.560+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/9855bc2c-b0d8-44f0-b360-3b1f9fa6b6fe"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="9855bc2c-b0d8-44f0-b360-3b1f9fa6b6fe"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/71c2b277-2dc1-4ea9-a7d5-be021a99e29f"/> + </subject> + <date value="2024-02-08T19:15:57+01:00"/> + <author> + <reference value="Practitioner/fff69e0e-0805-42dc-90df-7298c7aad109"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/ca6ecc74-32d5-4daa-9013-285eb20d6ef9"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/3ff9d7fd-15cc-4df7-bf10-f25fd99dfac5"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/f5aaf0db-d8ed-4ea0-92ec-48a08df224f8"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="84264572"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/71c2b277-2dc1-4ea9-a7d5-be021a99e29f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="71c2b277-2dc1-4ea9-a7d5-be021a99e29f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1962-11-24"/> + <address> + <type value="both"/> + <line value="Adolf-Baeyer-Str. 19a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="19a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Adolf-Baeyer-Str."/> + </extension> + </line> + <city value="Groß Bianca"/> + <postalCode value="82646"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/ca6ecc74-32d5-4daa-9013-285eb20d6ef9"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ca6ecc74-32d5-4daa-9013-285eb20d6ef9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="787145379"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(05009) 9116624"/> + </telecom> + <telecom> + <system value="email"/> + <value value="anthony.leyckes@fenner.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Ropenstaller Weg 700"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="700"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ropenstaller Weg"/> + </extension> + </line> + <city value="Doskoczynskiburg"/> + <postalCode value="08984"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/3ff9d7fd-15cc-4df7-bf10-f25fd99dfac5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="3ff9d7fd-15cc-4df7-bf10-f25fd99dfac5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="88"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/215077be-0034-4a9c-b51b-47826f3d3978"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141041"/> + </identifier> + <display value="KUK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/fff69e0e-0805-42dc-90df-7298c7aad109"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="fff69e0e-0805-42dc-90df-7298c7aad109"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="231796846"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/f5aaf0db-d8ed-4ea0-92ec-48a08df224f8"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f5aaf0db-d8ed-4ea0-92ec-48a08df224f8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + </medicationReference> + <subject> + <reference value="Patient/71c2b277-2dc1-4ea9-a7d5-be021a99e29f"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/fff69e0e-0805-42dc-90df-7298c7aad109"/> + </requester> + <insurance> + <reference value="Coverage/3ff9d7fd-15cc-4df7-bf10-f25fd99dfac5"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/output.json new file mode 100644 index 00000000..9a0426d6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "3fb29ad6-08cb-4eb3-b2db-52b187eef8c0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.533.49" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "5fbf8201-293c-442b-84f2-b4950fb05c5d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/daa92e5f-8902-4890-bbe4-fa82a42e7e09" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "daa92e5f-8902-4890-bbe4-fa82a42e7e09", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "84264572" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8d9546c8-f55f-4ee0-9abf-e6e5cd05b530", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "787145379" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(05009) 9116624" + }, { + "system": "email", + "value": "anthony.leyckes@fenner.org" + } ], + "address": [ { + "type": "both", + "line": [ "Ropenstaller Weg 700" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "700" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Ropenstaller Weg" + } ] + } ], + "city": "Doskoczynskiburg", + "postalCode": "08984", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a881f844-25d0-4bbe-bcc2-8877310823e6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "231796846" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/output.xml new file mode 100644 index 00000000..187f77bd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_3fb29ad6/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="3fb29ad6-08cb-4eb3-b2db-52b187eef8c0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.533.49"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5fbf8201-293c-442b-84f2-b4950fb05c5d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/daa92e5f-8902-4890-bbe4-fa82a42e7e09"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="daa92e5f-8902-4890-bbe4-fa82a42e7e09"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="84264572"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8d9546c8-f55f-4ee0-9abf-e6e5cd05b530"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="787145379"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(05009) 9116624"/> + </telecom> + <telecom> + <system value="email"/> + <value value="anthony.leyckes@fenner.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Ropenstaller Weg 700"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="700"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ropenstaller Weg"/> + </extension> + </line> + <city value="Doskoczynskiburg"/> + <postalCode value="08984"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a881f844-25d0-4bbe-bcc2-8877310823e6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="231796846"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/input.xml new file mode 100644 index 00000000..9a72ca7c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ee45abcb-b5d8-490f-9fd9-779a74fb640b"/> + <meta> + <lastUpdated value="2024-02-08T19:19:34.596+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.549.98"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:19:34.596+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/1b762a2e-b22f-4e71-8158-cf18f24903ca"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1b762a2e-b22f-4e71-8158-cf18f24903ca"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/83c55f36-867c-4c19-ba79-de3453298465"/> + </subject> + <date value="2024-02-08T19:19:34+01:00"/> + <author> + <reference value="Practitioner/ef2c8c6f-cd17-4f1e-9ed2-a67cc413c3db"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/044efc30-b658-4948-bcf4-5381d8141a1a"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/d3d12f5e-930d-40f8-901a-2254762df188"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/2eb96e18-4f0b-4c63-9a92-7a11ec03b064"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/e4d32334-507c-4f9c-9111-c66d065c2cad"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e4d32334-507c-4f9c-9111-c66d065c2cad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10642981"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/83c55f36-867c-4c19-ba79-de3453298465"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="83c55f36-867c-4c19-ba79-de3453298465"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2002-08-19"/> + <address> + <type value="both"/> + <line value="Vincent-van-Gogh-Str. 53c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="53c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Vincent-van-Gogh-Str."/> + </extension> + </line> + <city value="Kohnlehagen"/> + <postalCode value="16861"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/044efc30-b658-4948-bcf4-5381d8141a1a"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="044efc30-b658-4948-bcf4-5381d8141a1a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="479601479"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-7131-23459087"/> + </telecom> + <telecom> + <system value="email"/> + <value value="klaas.reinelt@bigdeli.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Memelstr. 60"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="60"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Memelstr."/> + </extension> + </line> + <city value="Davidescheid"/> + <postalCode value="75449"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/d3d12f5e-930d-40f8-901a-2254762df188"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="d3d12f5e-930d-40f8-901a-2254762df188"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="03"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/7b25a472-03da-4478-974f-b4231cfa72a9"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141154"/> + </identifier> + <display value="Vigo Krankenversicherung VVaG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/ef2c8c6f-cd17-4f1e-9ed2-a67cc413c3db"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ef2c8c6f-cd17-4f1e-9ed2-a67cc413c3db"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="786249106"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/2eb96e18-4f0b-4c63-9a92-7a11ec03b064"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2eb96e18-4f0b-4c63-9a92-7a11ec03b064"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e4d32334-507c-4f9c-9111-c66d065c2cad"/> + </medicationReference> + <subject> + <reference value="Patient/83c55f36-867c-4c19-ba79-de3453298465"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/ef2c8c6f-cd17-4f1e-9ed2-a67cc413c3db"/> + </requester> + <insurance> + <reference value="Coverage/d3d12f5e-930d-40f8-901a-2254762df188"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/output.json new file mode 100644 index 00000000..4f7c4813 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "53d1cfe9-a1a6-4c90-b433-9884fba28eb2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.549.98" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "326ef9fa-b32b-4b8b-b2d8-bb0d6b926032", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b0d48557-e8e1-416a-b34a-562a9994f14b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b0d48557-e8e1-416a-b34a-562a9994f14b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10642981" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3173ee19-9bcd-4a05-8d19-670be347ddb4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "479601479" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-7131-23459087" + }, { + "system": "email", + "value": "klaas.reinelt@bigdeli.ch" + } ], + "address": [ { + "type": "both", + "line": [ "Memelstr. 60" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "60" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Memelstr." + } ] + } ], + "city": "Davidescheid", + "postalCode": "75449", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "758ab2c1-81cc-43ff-b174-448eaf5f5d43", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "786249106" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/output.xml new file mode 100644 index 00000000..78b4a6b8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_53d1cfe9/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="53d1cfe9-a1a6-4c90-b433-9884fba28eb2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.549.98"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="326ef9fa-b32b-4b8b-b2d8-bb0d6b926032"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b0d48557-e8e1-416a-b34a-562a9994f14b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b0d48557-e8e1-416a-b34a-562a9994f14b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10642981"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3173ee19-9bcd-4a05-8d19-670be347ddb4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="479601479"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-7131-23459087"/> + </telecom> + <telecom> + <system value="email"/> + <value value="klaas.reinelt@bigdeli.ch"/> + </telecom> + <address> + <type value="both"/> + <line value="Memelstr. 60"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="60"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Memelstr."/> + </extension> + </line> + <city value="Davidescheid"/> + <postalCode value="75449"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="758ab2c1-81cc-43ff-b174-448eaf5f5d43"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="786249106"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/input.xml new file mode 100644 index 00000000..9e051845 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="3817df9f-9c38-4dbe-b0a4-787b92471380"/> + <meta> + <lastUpdated value="2024-02-08T19:20:41.559+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.554.83"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:20:41.559+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/70451b85-ed12-4ef1-b27d-8d3e8062f619"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="70451b85-ed12-4ef1-b27d-8d3e8062f619"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/12bad474-1fa3-47d8-a441-2bc96e7271b7"/> + </subject> + <date value="2024-02-08T19:20:41+01:00"/> + <author> + <reference value="Practitioner/eda958eb-1d19-49a4-b985-ee3836751a4a"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/0acabb17-87fc-4902-be22-929a39a4d214"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/78edcbd5-587f-4c2d-a2c9-ed0695a4cd2a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/29b84e4d-e63e-4714-9bf4-1972e89dbd9c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/b153e444-f57a-4dc5-9ceb-f4518027accb"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b153e444-f57a-4dc5-9ceb-f4518027accb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="89414303"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/12bad474-1fa3-47d8-a441-2bc96e7271b7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="12bad474-1fa3-47d8-a441-2bc96e7271b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2006-01-27"/> + <address> + <type value="both"/> + <line value="Neukronenberger Str. 63b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="63b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Neukronenberger Str."/> + </extension> + </line> + <city value="Neu Emmy"/> + <postalCode value="34048"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/0acabb17-87fc-4902-be22-929a39a4d214"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0acabb17-87fc-4902-be22-929a39a4d214"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614508968"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(04452) 0775160"/> + </telecom> + <telecom> + <system value="email"/> + <value value="peter.wiebe@scherz.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Borussiastr. 085"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="085"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Borussiastr."/> + </extension> + </line> + <city value="Bad Alinahagen"/> + <postalCode value="60537"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/78edcbd5-587f-4c2d-a2c9-ed0695a4cd2a"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="78edcbd5-587f-4c2d-a2c9-ed0695a4cd2a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="98"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1c56fdf1-ad3c-4d70-8a67-3eff790b7f1b"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141154"/> + </identifier> + <display value="Vigo Krankenversicherung VVaG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/eda958eb-1d19-49a4-b985-ee3836751a4a"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="eda958eb-1d19-49a4-b985-ee3836751a4a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="356309197"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/29b84e4d-e63e-4714-9bf4-1972e89dbd9c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="29b84e4d-e63e-4714-9bf4-1972e89dbd9c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b153e444-f57a-4dc5-9ceb-f4518027accb"/> + </medicationReference> + <subject> + <reference value="Patient/12bad474-1fa3-47d8-a441-2bc96e7271b7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/eda958eb-1d19-49a4-b985-ee3836751a4a"/> + </requester> + <insurance> + <reference value="Coverage/78edcbd5-587f-4c2d-a2c9-ed0695a4cd2a"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/output.json new file mode 100644 index 00000000..e17a7270 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "59da5b8a-4c5b-4dd9-b947-6881be111f66", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.554.83" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "94c2e781-9b40-4cd2-87a4-21836b7b0712", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/6c960237-283e-4e9b-beba-e021ee407627" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6c960237-283e-4e9b-beba-e021ee407627", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "89414303" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "da971789-6e05-48ee-86a5-ceefc2cc4a6e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "614508968" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(04452) 0775160" + }, { + "system": "email", + "value": "peter.wiebe@scherz.com" + } ], + "address": [ { + "type": "both", + "line": [ "Borussiastr. 085" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "085" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Borussiastr." + } ] + } ], + "city": "Bad Alinahagen", + "postalCode": "60537", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a3644fa7-b91d-4e9a-be15-6b3903b262e4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "356309197" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/output.xml new file mode 100644 index 00000000..b9fd2c10 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_59da5b8a/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="59da5b8a-4c5b-4dd9-b947-6881be111f66"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.554.83"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="94c2e781-9b40-4cd2-87a4-21836b7b0712"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6c960237-283e-4e9b-beba-e021ee407627"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6c960237-283e-4e9b-beba-e021ee407627"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="89414303"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="da971789-6e05-48ee-86a5-ceefc2cc4a6e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614508968"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(04452) 0775160"/> + </telecom> + <telecom> + <system value="email"/> + <value value="peter.wiebe@scherz.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Borussiastr. 085"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="085"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Borussiastr."/> + </extension> + </line> + <city value="Bad Alinahagen"/> + <postalCode value="60537"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a3644fa7-b91d-4e9a-be15-6b3903b262e4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="356309197"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/input.xml new file mode 100644 index 00000000..06719594 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9963336d-6760-4665-8808-ca1ab04a7e31"/> + <meta> + <lastUpdated value="2024-02-08T19:15:30.510+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.531.55"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:15:30.510+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/1c265454-260b-43c6-abad-616bd9745415"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1c265454-260b-43c6-abad-616bd9745415"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/be08f095-4586-43d5-a416-3f9df347d8a7"/> + </subject> + <date value="2024-02-08T19:15:30+01:00"/> + <author> + <reference value="Practitioner/8ca98f72-306e-4fc5-86ed-01a8855a4b6e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/cafc01fb-2330-4ab2-9293-bca778597728"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/4289b844-133c-40b8-957a-cf1c1c56188c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/7b68fef2-0e14-448e-a666-5ef6c5092f58"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/72e068f7-731f-4930-8f3f-60d36e210a64"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="72e068f7-731f-4930-8f3f-60d36e210a64"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="74302188"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/be08f095-4586-43d5-a416-3f9df347d8a7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="be08f095-4586-43d5-a416-3f9df347d8a7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1976-07-24"/> + <address> + <type value="both"/> + <line value="Im Oberfeld 5"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="5"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Im Oberfeld"/> + </extension> + </line> + <city value="Liebachgrün"/> + <postalCode value="60209"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/cafc01fb-2330-4ab2-9293-bca778597728"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cafc01fb-2330-4ab2-9293-bca778597728"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="464680902"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0118) 367892342"/> + </telecom> + <telecom> + <system value="email"/> + <value value="thomas.hort@marahrens.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Behringstr. 32a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="32a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Behringstr."/> + </extension> + </line> + <city value="Goedickehagen"/> + <postalCode value="97285"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/4289b844-133c-40b8-957a-cf1c1c56188c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="4289b844-133c-40b8-957a-cf1c1c56188c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="88"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/5ce7031d-4b54-4e5f-8501-12325048e42d"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140346"/> + </identifier> + <display value="Allianz"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/8ca98f72-306e-4fc5-86ed-01a8855a4b6e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8ca98f72-306e-4fc5-86ed-01a8855a4b6e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="056578601"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/7b68fef2-0e14-448e-a666-5ef6c5092f58"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7b68fef2-0e14-448e-a666-5ef6c5092f58"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/72e068f7-731f-4930-8f3f-60d36e210a64"/> + </medicationReference> + <subject> + <reference value="Patient/be08f095-4586-43d5-a416-3f9df347d8a7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/8ca98f72-306e-4fc5-86ed-01a8855a4b6e"/> + </requester> + <insurance> + <reference value="Coverage/4289b844-133c-40b8-957a-cf1c1c56188c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/output.json new file mode 100644 index 00000000..6dfda78b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "5e9c3c5a-3afe-4f48-90ca-60e2b29996a7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.531.55" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b7bf7119-dd4f-4730-af82-fd1704738cf5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/0f73795b-65c6-44cc-be03-3f8badf3ac13" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0f73795b-65c6-44cc-be03-3f8badf3ac13", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "74302188" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a3ef571f-d0e4-4bed-aec1-c649fcfc9a55", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "464680902" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0118) 367892342" + }, { + "system": "email", + "value": "thomas.hort@marahrens.name" + } ], + "address": [ { + "type": "both", + "line": [ "Behringstr. 32a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "32a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Behringstr." + } ] + } ], + "city": "Goedickehagen", + "postalCode": "97285", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "66faf585-0944-40c2-8f29-2178d89a23b8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "056578601" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/output.xml new file mode 100644 index 00000000..33b1f501 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_5e9c3c5a/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5e9c3c5a-3afe-4f48-90ca-60e2b29996a7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.531.55"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b7bf7119-dd4f-4730-af82-fd1704738cf5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0f73795b-65c6-44cc-be03-3f8badf3ac13"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0f73795b-65c6-44cc-be03-3f8badf3ac13"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="74302188"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a3ef571f-d0e4-4bed-aec1-c649fcfc9a55"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="464680902"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0118) 367892342"/> + </telecom> + <telecom> + <system value="email"/> + <value value="thomas.hort@marahrens.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Behringstr. 32a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="32a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Behringstr."/> + </extension> + </line> + <city value="Goedickehagen"/> + <postalCode value="97285"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="66faf585-0944-40c2-8f29-2178d89a23b8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="056578601"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/input.xml new file mode 100644 index 00000000..d47f8caa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="a49d100a-e15f-496d-ace2-b5dbbca4f770"/> + <meta> + <lastUpdated value="2024-02-08T19:14:52.136+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.529.61"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:14:52.136+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/1bc6caa3-99fe-44f8-99d2-aef36ac0a2bb"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1bc6caa3-99fe-44f8-99d2-aef36ac0a2bb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/b5bb188a-1b07-4349-8dbd-28851185c2a4"/> + </subject> + <date value="2024-02-08T19:14:52+01:00"/> + <author> + <reference value="Practitioner/ce1e28d2-4412-4268-bef8-7d80893c998c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/33d1739a-9b0c-4ea5-8274-db76c6549d27"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/bb138de8-eb35-4358-b854-1b817f67b77c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/4befd3ae-d557-4f61-b4fb-799158e906f3"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/a656e1d6-a37c-4753-9b26-b90bb0eddd30"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a656e1d6-a37c-4753-9b26-b90bb0eddd30"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="94890460"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/b5bb188a-1b07-4349-8dbd-28851185c2a4"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="b5bb188a-1b07-4349-8dbd-28851185c2a4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1968-04-25"/> + <address> + <type value="both"/> + <line value="Beerenstr. 92a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="92a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Beerenstr."/> + </extension> + </line> + <city value="Jennybrunn"/> + <postalCode value="77713"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/33d1739a-9b0c-4ea5-8274-db76c6549d27"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="33d1739a-9b0c-4ea5-8274-db76c6549d27"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="033064063"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0747) 184790321"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hamza.reppin@xn--thrnhardt-x2a.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Ehrlichstr. 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ehrlichstr."/> + </extension> + </line> + <city value="Alt Melek"/> + <postalCode value="51285"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/bb138de8-eb35-4358-b854-1b817f67b77c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="bb138de8-eb35-4358-b854-1b817f67b77c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="98"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/8be38daf-4e57-4da4-82c3-149199347f6e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141176"/> + </identifier> + <display value="HUK-COBURG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/ce1e28d2-4412-4268-bef8-7d80893c998c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ce1e28d2-4412-4268-bef8-7d80893c998c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="770468750"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/4befd3ae-d557-4f61-b4fb-799158e906f3"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4befd3ae-d557-4f61-b4fb-799158e906f3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a656e1d6-a37c-4753-9b26-b90bb0eddd30"/> + </medicationReference> + <subject> + <reference value="Patient/b5bb188a-1b07-4349-8dbd-28851185c2a4"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/ce1e28d2-4412-4268-bef8-7d80893c998c"/> + </requester> + <insurance> + <reference value="Coverage/bb138de8-eb35-4358-b854-1b817f67b77c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/output.json new file mode 100644 index 00000000..eb9d2b59 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "6e19e753-63d5-4696-ba18-b3d361d8a0c0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.529.61" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "667b4141-bc07-486b-aebf-b49d87b71339", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1993584c-2956-4f7c-af1b-997282e69df9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1993584c-2956-4f7c-af1b-997282e69df9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "94890460" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "308717ae-88af-4b5c-87f8-5f94b34f742d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "033064063" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0747) 184790321" + }, { + "system": "email", + "value": "hamza.reppin@xn--thrnhardt-x2a.com" + } ], + "address": [ { + "type": "both", + "line": [ "Ehrlichstr. 3" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "3" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Ehrlichstr." + } ] + } ], + "city": "Alt Melek", + "postalCode": "51285", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a7a3e625-d370-4128-851f-b15be4573377", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "770468750" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/output.xml new file mode 100644 index 00000000..5be2bdba --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_6e19e753/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6e19e753-63d5-4696-ba18-b3d361d8a0c0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.529.61"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="667b4141-bc07-486b-aebf-b49d87b71339"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1993584c-2956-4f7c-af1b-997282e69df9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1993584c-2956-4f7c-af1b-997282e69df9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="94890460"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="308717ae-88af-4b5c-87f8-5f94b34f742d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="033064063"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0747) 184790321"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hamza.reppin@xn--thrnhardt-x2a.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Ehrlichstr. 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Ehrlichstr."/> + </extension> + </line> + <city value="Alt Melek"/> + <postalCode value="51285"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a7a3e625-d370-4128-851f-b15be4573377"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="770468750"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/input.xml new file mode 100644 index 00000000..d8b4151b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="90b31bf4-1ee7-49ac-9a96-2841ad637acb"/> + <meta> + <lastUpdated value="2024-02-08T19:14:15.550+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.527.67"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:14:15.550+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/31fd3704-a4cc-42d5-a5fc-a839ccb35dcb"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="31fd3704-a4cc-42d5-a5fc-a839ccb35dcb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/a440b0ca-047c-4fa7-bb0d-959a6c2891af"/> + </subject> + <date value="2024-02-08T19:14:15+01:00"/> + <author> + <reference value="Practitioner/6ecb3294-b24f-45cf-bb33-0350bc6071e6"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/271fe1b2-d18d-4f9b-95cb-7e9abea43942"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/387fa35b-bae6-4377-ba7e-1ca37855ade4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/c716a081-6bd4-4210-b97b-4b1cf50bff40"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/06e192d7-a295-4572-8824-2270041cd3d0"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="06e192d7-a295-4572-8824-2270041cd3d0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64184374"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/a440b0ca-047c-4fa7-bb0d-959a6c2891af"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="a440b0ca-047c-4fa7-bb0d-959a6c2891af"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2002-02-23"/> + <address> + <type value="both"/> + <line value="Bohnenkampsweg 80b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="80b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Bohnenkampsweg"/> + </extension> + </line> + <city value="Moedlscheid"/> + <postalCode value="41371"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/271fe1b2-d18d-4f9b-95cb-7e9abea43942"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="271fe1b2-d18d-4f9b-95cb-7e9abea43942"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711209517"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-5122-37264545"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hailey.heinze@gutjahr.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Wannseestr. 75a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="75a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wannseestr."/> + </extension> + </line> + <city value="Groß Hasan"/> + <postalCode value="47624"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/387fa35b-bae6-4377-ba7e-1ca37855ade4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="387fa35b-bae6-4377-ba7e-1ca37855ade4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="49"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/756a81ff-2cee-422c-ac8b-28ab0a2f6823"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141085"/> + </identifier> + <display value="Union Krankenversicherung AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/6ecb3294-b24f-45cf-bb33-0350bc6071e6"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6ecb3294-b24f-45cf-bb33-0350bc6071e6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="834553350"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/c716a081-6bd4-4210-b97b-4b1cf50bff40"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c716a081-6bd4-4210-b97b-4b1cf50bff40"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/06e192d7-a295-4572-8824-2270041cd3d0"/> + </medicationReference> + <subject> + <reference value="Patient/a440b0ca-047c-4fa7-bb0d-959a6c2891af"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/6ecb3294-b24f-45cf-bb33-0350bc6071e6"/> + </requester> + <insurance> + <reference value="Coverage/387fa35b-bae6-4377-ba7e-1ca37855ade4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/output.json new file mode 100644 index 00000000..3b339f83 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "7e017904-dc80-467b-a66f-19df4c843173", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.527.67" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b13fa9f4-a087-47bc-8706-c1d06ef05968", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a6c335e9-aaa0-4ad7-963f-4748abf6acc0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a6c335e9-aaa0-4ad7-963f-4748abf6acc0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "64184374" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6f25177d-5d96-47bd-9495-74774528ec8a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "711209517" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-5122-37264545" + }, { + "system": "email", + "value": "hailey.heinze@gutjahr.info" + } ], + "address": [ { + "type": "both", + "line": [ "Wannseestr. 75a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "75a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Wannseestr." + } ] + } ], + "city": "Groß Hasan", + "postalCode": "47624", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "422e02e5-9786-4239-b676-955e06ec7667", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "834553350" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/output.xml new file mode 100644 index 00000000..b18135d6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_7e017904/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="7e017904-dc80-467b-a66f-19df4c843173"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.527.67"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b13fa9f4-a087-47bc-8706-c1d06ef05968"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a6c335e9-aaa0-4ad7-963f-4748abf6acc0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a6c335e9-aaa0-4ad7-963f-4748abf6acc0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="64184374"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6f25177d-5d96-47bd-9495-74774528ec8a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711209517"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-5122-37264545"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hailey.heinze@gutjahr.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Wannseestr. 75a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="75a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wannseestr."/> + </extension> + </line> + <city value="Groß Hasan"/> + <postalCode value="47624"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="422e02e5-9786-4239-b676-955e06ec7667"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="834553350"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/input.xml new file mode 100644 index 00000000..d1d96782 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="a79dd76f-4a88-4b1c-917e-d7ef80c2cdaf"/> + <meta> + <lastUpdated value="2024-02-08T19:19:43.771+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.550.95"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:19:43.771+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/95acd051-52a9-4d8d-a7b7-36f24e3533b6"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="95acd051-52a9-4d8d-a7b7-36f24e3533b6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/b9c628bc-a10c-45a9-a83f-f2257cd0f399"/> + </subject> + <date value="2024-02-08T19:19:43+01:00"/> + <author> + <reference value="Practitioner/3311f7c6-2753-4f47-8dd9-d311fd8c972e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/577378c3-1022-4446-bc46-fc692267cdc8"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/6cc4afd1-f3e9-4aab-a26b-2965809104cf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/5c899df7-a876-43e8-baac-9a6688a5fcaa"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/623d572c-765b-4bf1-bcd4-6169a20a0a87"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="623d572c-765b-4bf1-bcd4-6169a20a0a87"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16833239"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/b9c628bc-a10c-45a9-a83f-f2257cd0f399"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="b9c628bc-a10c-45a9-a83f-f2257cd0f399"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1990-11-20"/> + <address> + <type value="both"/> + <line value="Rudolf-Stracke-Str. 31c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="31c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Rudolf-Stracke-Str."/> + </extension> + </line> + <city value="Nord Azra"/> + <postalCode value="04389"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/577378c3-1022-4446-bc46-fc692267cdc8"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="577378c3-1022-4446-bc46-fc692267cdc8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="178331393"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0086) 004305314"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lisa.schahbasian@leist.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Gabriele-Münter-Str. 97a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="97a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Gabriele-Münter-Str."/> + </extension> + </line> + <city value="Neu David"/> + <postalCode value="28914"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/6cc4afd1-f3e9-4aab-a26b-2965809104cf"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="6cc4afd1-f3e9-4aab-a26b-2965809104cf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/59d22882-4177-40e9-bf5a-2e4a8cd0afbe"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141198"/> + </identifier> + <display value="Gothaer"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/3311f7c6-2753-4f47-8dd9-d311fd8c972e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="3311f7c6-2753-4f47-8dd9-d311fd8c972e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="423315810"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/5c899df7-a876-43e8-baac-9a6688a5fcaa"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5c899df7-a876-43e8-baac-9a6688a5fcaa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/623d572c-765b-4bf1-bcd4-6169a20a0a87"/> + </medicationReference> + <subject> + <reference value="Patient/b9c628bc-a10c-45a9-a83f-f2257cd0f399"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/3311f7c6-2753-4f47-8dd9-d311fd8c972e"/> + </requester> + <insurance> + <reference value="Coverage/6cc4afd1-f3e9-4aab-a26b-2965809104cf"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/output.json new file mode 100644 index 00000000..e8c5e5a4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "9965d2f7-3968-476f-bc8e-255899d3f93a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.550.95" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a46b41f7-5024-4f7d-be6f-43e4342b469d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/aaf94c1b-dd28-4f1b-82f3-83e2a9ffffbc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "aaf94c1b-dd28-4f1b-82f3-83e2a9ffffbc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16833239" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2bcda0be-c7d0-42bd-b453-5afb56c60a54", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "178331393" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0086) 004305314" + }, { + "system": "email", + "value": "lisa.schahbasian@leist.de" + } ], + "address": [ { + "type": "both", + "line": [ "Gabriele-Münter-Str. 97a" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "97a" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Gabriele-Münter-Str." + } ] + } ], + "city": "Neu David", + "postalCode": "28914", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4091f9cb-dbe2-4dbf-918d-82335fe8b66e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "423315810" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/output.xml new file mode 100644 index 00000000..4e1a1fde --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_9965d2f7/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9965d2f7-3968-476f-bc8e-255899d3f93a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.550.95"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a46b41f7-5024-4f7d-be6f-43e4342b469d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/aaf94c1b-dd28-4f1b-82f3-83e2a9ffffbc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aaf94c1b-dd28-4f1b-82f3-83e2a9ffffbc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16833239"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2bcda0be-c7d0-42bd-b453-5afb56c60a54"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="178331393"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0086) 004305314"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lisa.schahbasian@leist.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Gabriele-Münter-Str. 97a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="97a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Gabriele-Münter-Str."/> + </extension> + </line> + <city value="Neu David"/> + <postalCode value="28914"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4091f9cb-dbe2-4dbf-918d-82335fe8b66e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="423315810"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/input.xml new file mode 100644 index 00000000..38aa8fac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="3cb47bc5-a1ac-44ec-9d29-24249515812f"/> + <meta> + <lastUpdated value="2024-02-08T19:20:30.004+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.553.86"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:20:30.004+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/8c37965c-23f4-4c16-af7d-828a01242ce3"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8c37965c-23f4-4c16-af7d-828a01242ce3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/7e31d20e-285c-45e2-9481-b2b8788317f5"/> + </subject> + <date value="2024-02-08T19:20:30+01:00"/> + <author> + <reference value="Practitioner/611d17b9-b047-44a8-866a-95263cf17ef2"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d93dcbd1-c72f-4553-b29c-708d405243a6"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/6b41c94d-08f2-4fca-bd5b-1ec48ba18d8a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/6a2767f7-a321-4178-82c0-0132c153ac61"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/7570cb81-1f77-482a-9e97-e370734ae496"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7570cb81-1f77-482a-9e97-e370734ae496"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09921210"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/7e31d20e-285c-45e2-9481-b2b8788317f5"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="7e31d20e-285c-45e2-9481-b2b8788317f5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2003-11-05"/> + <address> + <type value="both"/> + <line value="Mülheimer Str. 17"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Mülheimer Str."/> + </extension> + </line> + <city value="Bad Alena"/> + <postalCode value="08851"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/d93dcbd1-c72f-4553-b29c-708d405243a6"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d93dcbd1-c72f-4553-b29c-708d405243a6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="473655401"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-5210-24343099"/> + </telecom> + <telecom> + <system value="email"/> + <value value="michel.tremmel@xn--grtzinger-17a.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Albert-Einstein-Str. 43b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="43b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Albert-Einstein-Str."/> + </extension> + </line> + <city value="West William"/> + <postalCode value="00269"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/6b41c94d-08f2-4fca-bd5b-1ec48ba18d8a"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="6b41c94d-08f2-4fca-bd5b-1ec48ba18d8a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="51"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/e88216d0-e1a7-442a-b958-26f533eab91e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140017"/> + </identifier> + <display value="Continentale"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/611d17b9-b047-44a8-866a-95263cf17ef2"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="611d17b9-b047-44a8-866a-95263cf17ef2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="360613903"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/6a2767f7-a321-4178-82c0-0132c153ac61"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6a2767f7-a321-4178-82c0-0132c153ac61"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7570cb81-1f77-482a-9e97-e370734ae496"/> + </medicationReference> + <subject> + <reference value="Patient/7e31d20e-285c-45e2-9481-b2b8788317f5"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/611d17b9-b047-44a8-866a-95263cf17ef2"/> + </requester> + <insurance> + <reference value="Coverage/6b41c94d-08f2-4fca-bd5b-1ec48ba18d8a"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/output.json new file mode 100644 index 00000000..407881b0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "a40b9e5a-7cba-4a48-a266-72a447f42a7d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.553.86" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "5b2d9d3a-90a8-4a13-b247-7a57cb8e8ba8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/9224541a-4db7-4fb2-8561-7bd2f2b884cc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9224541a-4db7-4fb2-8561-7bd2f2b884cc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09921210" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9f3665e8-3e29-4087-8753-76e5ea27dbbf", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "473655401" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-5210-24343099" + }, { + "system": "email", + "value": "michel.tremmel@xn--grtzinger-17a.net" + } ], + "address": [ { + "type": "both", + "line": [ "Albert-Einstein-Str. 43b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "43b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Albert-Einstein-Str." + } ] + } ], + "city": "West William", + "postalCode": "00269", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6491a45b-7286-48d2-b125-22ba724bf81e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "360613903" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/output.xml new file mode 100644 index 00000000..6f6d19eb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_a40b9e5a/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="a40b9e5a-7cba-4a48-a266-72a447f42a7d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.553.86"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5b2d9d3a-90a8-4a13-b247-7a57cb8e8ba8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9224541a-4db7-4fb2-8561-7bd2f2b884cc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9224541a-4db7-4fb2-8561-7bd2f2b884cc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09921210"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9f3665e8-3e29-4087-8753-76e5ea27dbbf"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="473655401"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-5210-24343099"/> + </telecom> + <telecom> + <system value="email"/> + <value value="michel.tremmel@xn--grtzinger-17a.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Albert-Einstein-Str. 43b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="43b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Albert-Einstein-Str."/> + </extension> + </line> + <city value="West William"/> + <postalCode value="00269"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6491a45b-7286-48d2-b125-22ba724bf81e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="360613903"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/input.xml new file mode 100644 index 00000000..92f6d4a7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="25e815da-8070-42d1-aa8b-1c211317cf56"/> + <meta> + <lastUpdated value="2024-02-08T19:18:01.145+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.541.25"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:18:01.145+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/818c226c-e2fc-4ef1-8875-95abc24d577c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="818c226c-e2fc-4ef1-8875-95abc24d577c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/dc49d750-fa24-4995-9f5b-ad1ae4b1203a"/> + </subject> + <date value="2024-02-08T19:18:01+01:00"/> + <author> + <reference value="Practitioner/65b0bbdf-df35-4010-96db-2d192657bb17"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/be4df0c0-14f4-40ce-8887-b4e913a57009"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/952156a8-1e4c-411e-9572-aa32229ec87b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/bdb8478d-17cc-4da0-a464-acc2831976db"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/15a37998-7cf6-43ed-8d6f-80c931464059"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="15a37998-7cf6-43ed-8d6f-80c931464059"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="25582871"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/dc49d750-fa24-4995-9f5b-ad1ae4b1203a"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="dc49d750-fa24-4995-9f5b-ad1ae4b1203a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2005-03-20"/> + <address> + <type value="both"/> + <line value="Schloßstr. 268"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="268"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Schloßstr."/> + </extension> + </line> + <city value="Slottagrün"/> + <postalCode value="89333"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/be4df0c0-14f4-40ce-8887-b4e913a57009"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="be4df0c0-14f4-40ce-8887-b4e913a57009"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="559166155"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3334-51630533"/> + </telecom> + <telecom> + <system value="email"/> + <value value="vivien.schwandke@xn--knig-5qa.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Wingchen-Str. 44c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="44c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Wingchen-Str."/> + </extension> + </line> + <city value="Kjellgrün"/> + <postalCode value="37345"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/952156a8-1e4c-411e-9572-aa32229ec87b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="952156a8-1e4c-411e-9572-aa32229ec87b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="47"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/d449fc9e-de45-45c5-a2a8-1300320c90eb"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141450"/> + </identifier> + <display value="INTER"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/65b0bbdf-df35-4010-96db-2d192657bb17"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="65b0bbdf-df35-4010-96db-2d192657bb17"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="781777272"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/bdb8478d-17cc-4da0-a464-acc2831976db"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="bdb8478d-17cc-4da0-a464-acc2831976db"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/15a37998-7cf6-43ed-8d6f-80c931464059"/> + </medicationReference> + <subject> + <reference value="Patient/dc49d750-fa24-4995-9f5b-ad1ae4b1203a"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/65b0bbdf-df35-4010-96db-2d192657bb17"/> + </requester> + <insurance> + <reference value="Coverage/952156a8-1e4c-411e-9572-aa32229ec87b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/output.json new file mode 100644 index 00000000..5bfa1c4a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "f3b90767-7041-49f2-9ef0-3cb883883918", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.541.25" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "94adffcd-62e0-445f-916a-8b2c9d5d940b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/fb67b34d-ec20-4cf7-a0e8-96ce2e2651ff" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fb67b34d-ec20-4cf7-a0e8-96ce2e2651ff", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "25582871" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8e712ed2-d252-4112-9f70-760717e0e9e0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "559166155" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-3334-51630533" + }, { + "system": "email", + "value": "vivien.schwandke@xn--knig-5qa.de" + } ], + "address": [ { + "type": "both", + "line": [ "Karl-Wingchen-Str. 44c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "44c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Karl-Wingchen-Str." + } ] + } ], + "city": "Kjellgrün", + "postalCode": "37345", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "54cade8e-ebd3-42f3-954e-c2dae2409595", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "781777272" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/output.xml new file mode 100644 index 00000000..b7c327af --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_f3b90767/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f3b90767-7041-49f2-9ef0-3cb883883918"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.541.25"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="94adffcd-62e0-445f-916a-8b2c9d5d940b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fb67b34d-ec20-4cf7-a0e8-96ce2e2651ff"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fb67b34d-ec20-4cf7-a0e8-96ce2e2651ff"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="25582871"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8e712ed2-d252-4112-9f70-760717e0e9e0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="559166155"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3334-51630533"/> + </telecom> + <telecom> + <system value="email"/> + <value value="vivien.schwandke@xn--knig-5qa.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Karl-Wingchen-Str. 44c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="44c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Karl-Wingchen-Str."/> + </extension> + </line> + <city value="Kjellgrün"/> + <postalCode value="37345"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="54cade8e-ebd3-42f3-954e-c2dae2409595"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="781777272"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/input.xml new file mode 100644 index 00000000..ea3ed576 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="3a052e22-7b00-471a-bd98-ab71a6854703"/> + <meta> + <lastUpdated value="2024-02-08T19:20:11.020+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.552.89"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:20:11.020+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/b7a74656-c578-4483-b6d6-f1adb258de22"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="b7a74656-c578-4483-b6d6-f1adb258de22"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/787525c3-82e0-4cdb-8bcf-47db56a2c4ff"/> + </subject> + <date value="2024-02-08T19:20:11+01:00"/> + <author> + <reference value="Practitioner/2c335f1b-1e9f-4132-8772-67b354f06c2e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/72ae487f-9a5e-4518-a1d6-24e0faedb5cf"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/88a304e1-3a47-4b6d-9fbd-6eeab4d455bd"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/714f438a-cfd0-4ffa-af3d-bec187e39286"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/b6498800-1520-41a1-9444-5a12077bae9f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b6498800-1520-41a1-9444-5a12077bae9f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="72828845"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/787525c3-82e0-4cdb-8bcf-47db56a2c4ff"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="787525c3-82e0-4cdb-8bcf-47db56a2c4ff"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2004-04-12"/> + <address> + <type value="both"/> + <line value="Feuerbachstr. 78c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="78c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Feuerbachstr."/> + </extension> + </line> + <city value="Bad Lya"/> + <postalCode value="28163"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/72ae487f-9a5e-4518-a1d6-24e0faedb5cf"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="72ae487f-9a5e-4518-a1d6-24e0faedb5cf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="737393702"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02065) 5910464"/> + </telecom> + <telecom> + <system value="email"/> + <value value="gina.kaesmacher@faulhaber.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Van't-Hoff-Str. 35"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="35"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Van't-Hoff-Str."/> + </extension> + </line> + <city value="Kayberg"/> + <postalCode value="20971"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/88a304e1-3a47-4b6d-9fbd-6eeab4d455bd"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="88a304e1-3a47-4b6d-9fbd-6eeab4d455bd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="62"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/f82dd05a-fbbf-4edc-8a0f-1a6f113ce4b8"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140530"/> + </identifier> + <display value="FREIE ARZT- UND MEDIZINKASSE"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/2c335f1b-1e9f-4132-8772-67b354f06c2e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2c335f1b-1e9f-4132-8772-67b354f06c2e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="936686332"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/714f438a-cfd0-4ffa-af3d-bec187e39286"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="714f438a-cfd0-4ffa-af3d-bec187e39286"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b6498800-1520-41a1-9444-5a12077bae9f"/> + </medicationReference> + <subject> + <reference value="Patient/787525c3-82e0-4cdb-8bcf-47db56a2c4ff"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/2c335f1b-1e9f-4132-8772-67b354f06c2e"/> + </requester> + <insurance> + <reference value="Coverage/88a304e1-3a47-4b6d-9fbd-6eeab4d455bd"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/output.json new file mode 100644 index 00000000..3d8b0567 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "fd771be7-a806-46d8-8f16-90e9e540f030", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.552.89" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "816abb97-2db7-48b3-840b-2783df32c805", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b90a8cac-0dd5-421b-9416-c28db92af6ad" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b90a8cac-0dd5-421b-9416-c28db92af6ad", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "72828845" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "4f3a562c-cce3-4b65-a26d-f0faaa2741db", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "737393702" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(02065) 5910464" + }, { + "system": "email", + "value": "gina.kaesmacher@faulhaber.info" + } ], + "address": [ { + "type": "both", + "line": [ "Van't-Hoff-Str. 35" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "35" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Van't-Hoff-Str." + } ] + } ], + "city": "Kayberg", + "postalCode": "20971", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "54ed15b9-6f7f-45ea-94ab-154735d2aa1e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "936686332" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/output.xml new file mode 100644 index 00000000..52f546e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/003_document_to_sign_fd771be7/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fd771be7-a806-46d8-8f16-90e9e540f030"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.552.89"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="816abb97-2db7-48b3-840b-2783df32c805"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b90a8cac-0dd5-421b-9416-c28db92af6ad"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b90a8cac-0dd5-421b-9416-c28db92af6ad"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="72828845"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4f3a562c-cce3-4b65-a26d-f0faaa2741db"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="737393702"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(02065) 5910464"/> + </telecom> + <telecom> + <system value="email"/> + <value value="gina.kaesmacher@faulhaber.info"/> + </telecom> + <address> + <type value="both"/> + <line value="Van't-Hoff-Str. 35"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="35"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Van't-Hoff-Str."/> + </extension> + </line> + <city value="Kayberg"/> + <postalCode value="20971"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="54ed15b9-6f7f-45ea-94ab-154735d2aa1e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="936686332"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/input.xml new file mode 100644 index 00000000..4945dfe9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c80f28e3-4e69-40ab-b4ce-aa56c4e83000"/> + <meta> + <lastUpdated value="2024-02-08T19:22:52.688+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.810.39"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:22:52.688+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/f2fef97f-c3bf-48a1-b271-c3b74aba5fa0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f2fef97f-c3bf-48a1-b271-c3b74aba5fa0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/075ef5f0-3b70-4685-9ea0-96d76f862319"/> + </subject> + <date value="2024-02-08T19:22:52+01:00"/> + <author> + <reference value="Practitioner/a9ab08d7-de91-4651-8599-a68bccd6182c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/ff5c546e-9300-43ac-a90a-7354529ff3d3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/5f1b0ce2-6203-42be-bf61-2870e29c45e8"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/8bb89159-7d5f-44d3-84cd-2d0bc31c500d"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/d8ed2888-26c4-4855-bfc0-395de5ec214d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d8ed2888-26c4-4855-bfc0-395de5ec214d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/075ef5f0-3b70-4685-9ea0-96d76f862319"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="075ef5f0-3b70-4685-9ea0-96d76f862319"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1984-11-22"/> + <address> + <type value="both"/> + <line value="Nordstr. 00b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="00b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Nordstr."/> + </extension> + </line> + <city value="Vogelscheid"/> + <postalCode value="43977"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/ff5c546e-9300-43ac-a90a-7354529ff3d3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ff5c546e-9300-43ac-a90a-7354529ff3d3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="208729108"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-585-7812901"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lennart.keil@xn--schffer-7wa.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Im Oberfeld 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Im Oberfeld"/> + </extension> + </line> + <city value="Ost Aleastadt"/> + <postalCode value="71010"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/5f1b0ce2-6203-42be-bf61-2870e29c45e8"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="5f1b0ce2-6203-42be-bf61-2870e29c45e8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="61"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/5ca51180-05b9-4e28-a3c5-65e79ab60a81"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="105530331"/> + </identifier> + <display value="BKK Herkules"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/a9ab08d7-de91-4651-8599-a68bccd6182c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a9ab08d7-de91-4651-8599-a68bccd6182c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="577428372"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/8bb89159-7d5f-44d3-84cd-2d0bc31c500d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8bb89159-7d5f-44d3-84cd-2d0bc31c500d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d8ed2888-26c4-4855-bfc0-395de5ec214d"/> + </medicationReference> + <subject> + <reference value="Patient/075ef5f0-3b70-4685-9ea0-96d76f862319"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/a9ab08d7-de91-4651-8599-a68bccd6182c"/> + </requester> + <insurance> + <reference value="Coverage/5f1b0ce2-6203-42be-bf61-2870e29c45e8"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/output.json new file mode 100644 index 00000000..bfdfa9a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "0169e0e6-9aeb-4753-b95a-a320e286616c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.810.39" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "be285bf2-d7e8-410a-bb83-e27c9c48214f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b2e5408d-1679-46d1-86f8-1cb6737bd3d2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 3, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b2e5408d-1679-46d1-86f8-1cb6737bd3d2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2c4d633a-fd39-4276-8b86-cc7ce4d3142a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "208729108" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-585-7812901" + }, { + "system": "email", + "value": "lennart.keil@xn--schffer-7wa.net" + } ], + "address": [ { + "type": "both", + "line": [ "Im Oberfeld 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Im Oberfeld" + } ] + } ], + "city": "Ost Aleastadt", + "postalCode": "71010", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "9db79de5-153b-4a06-98fa-02c8d47fa01f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "577428372" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/output.xml new file mode 100644 index 00000000..f484723d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_0169e0e6/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0169e0e6-9aeb-4753-b95a-a320e286616c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.810.39"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="be285bf2-d7e8-410a-bb83-e27c9c48214f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b2e5408d-1679-46d1-86f8-1cb6737bd3d2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b2e5408d-1679-46d1-86f8-1cb6737bd3d2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2c4d633a-fd39-4276-8b86-cc7ce4d3142a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="208729108"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-585-7812901"/> + </telecom> + <telecom> + <system value="email"/> + <value value="lennart.keil@xn--schffer-7wa.net"/> + </telecom> + <address> + <type value="both"/> + <line value="Im Oberfeld 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Im Oberfeld"/> + </extension> + </line> + <city value="Ost Aleastadt"/> + <postalCode value="71010"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9db79de5-153b-4a06-98fa-02c8d47fa01f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="577428372"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/input.xml new file mode 100644 index 00000000..e5557089 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="93c38d8d-5ee4-4efc-a424-d46c8e08f54e"/> + <meta> + <lastUpdated value="2024-02-08T19:22:32.404+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.809.42"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:22:32.404+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/7a5cc09c-df76-456f-aee2-84beccdedbbc"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7a5cc09c-df76-456f-aee2-84beccdedbbc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/552f2794-06eb-477f-999f-60afdb012b04"/> + </subject> + <date value="2024-02-08T19:22:32+01:00"/> + <author> + <reference value="Practitioner/19dc95ce-8079-41c0-ab13-947020d80c83"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/28e63588-bd32-4c3c-b11d-8f94433e0a98"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/df392a19-7b54-4786-9475-8e131ea0594a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/7663dd6e-e211-4c1c-a957-438f074f2c8f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/5c1bf313-affe-4ce9-92b1-764efea16ed1"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5c1bf313-affe-4ce9-92b1-764efea16ed1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/552f2794-06eb-477f-999f-60afdb012b04"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="552f2794-06eb-477f-999f-60afdb012b04"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1972-10-28"/> + <address> + <type value="both"/> + <line value="Im Kirchfeld 019"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="019"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Im Kirchfeld"/> + </extension> + </line> + <city value="Schön Penelopestadt"/> + <postalCode value="59454"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/28e63588-bd32-4c3c-b11d-8f94433e0a98"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="28e63588-bd32-4c3c-b11d-8f94433e0a98"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="609724093"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0602) 198161888"/> + </telecom> + <telecom> + <system value="email"/> + <value value="robin.hingsen@kluge.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Linienstr. 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Linienstr."/> + </extension> + </line> + <city value="Alt Finnleyfeld"/> + <postalCode value="72153"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/df392a19-7b54-4786-9475-8e131ea0594a"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="df392a19-7b54-4786-9475-8e131ea0594a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="78"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/b535443f-fd14-47ce-87a5-47fde22db828"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101575519"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/19dc95ce-8079-41c0-ab13-947020d80c83"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="19dc95ce-8079-41c0-ab13-947020d80c83"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="054643243"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/7663dd6e-e211-4c1c-a957-438f074f2c8f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7663dd6e-e211-4c1c-a957-438f074f2c8f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5c1bf313-affe-4ce9-92b1-764efea16ed1"/> + </medicationReference> + <subject> + <reference value="Patient/552f2794-06eb-477f-999f-60afdb012b04"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/19dc95ce-8079-41c0-ab13-947020d80c83"/> + </requester> + <insurance> + <reference value="Coverage/df392a19-7b54-4786-9475-8e131ea0594a"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/output.json new file mode 100644 index 00000000..bb2e1b96 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "fb58223d-27b0-4e47-be16-d958871a3359", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.809.42" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b5577e10-3190-46e1-9e3f-f4a1e4f56b4e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a07173a3-6917-43f3-a20c-14f1170dcd46" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 3, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a07173a3-6917-43f3-a20c-14f1170dcd46", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "12345678" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d522e2fc-6276-4134-9a8a-bdce0c848cd4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "609724093" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0602) 198161888" + }, { + "system": "email", + "value": "robin.hingsen@kluge.com" + } ], + "address": [ { + "type": "both", + "line": [ "Linienstr. 1" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "1" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Linienstr." + } ] + } ], + "city": "Alt Finnleyfeld", + "postalCode": "72153", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "c163d1a6-9cee-4920-8f17-8a1b916c453b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "054643243" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/output.xml new file mode 100644 index 00000000..ae41c075 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/004_document_to_sign_fb58223d/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fb58223d-27b0-4e47-be16-d958871a3359"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.809.42"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b5577e10-3190-46e1-9e3f-f4a1e4f56b4e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a07173a3-6917-43f3-a20c-14f1170dcd46"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="3"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a07173a3-6917-43f3-a20c-14f1170dcd46"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="12345678"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d522e2fc-6276-4134-9a8a-bdce0c848cd4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="609724093"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0602) 198161888"/> + </telecom> + <telecom> + <system value="email"/> + <value value="robin.hingsen@kluge.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Linienstr. 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Linienstr."/> + </extension> + </line> + <city value="Alt Finnleyfeld"/> + <postalCode value="72153"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="c163d1a6-9cee-4920-8f17-8a1b916c453b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="054643243"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/input.xml new file mode 100644 index 00000000..4e6b5b63 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="251cee33-049b-4e24-83f0-f5d887e54891"/> + <meta> + <lastUpdated value="2024-02-08T19:15:11.882+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.530.58"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:15:11.882+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/d347ad9a-802a-429f-b5c5-c13ef4f5eb23"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d347ad9a-802a-429f-b5c5-c13ef4f5eb23"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/27ed9fd3-a297-4ffb-b40e-e27ba636d037"/> + </subject> + <date value="2024-02-08T19:15:11+01:00"/> + <author> + <reference value="Practitioner/dbcaeac6-ef8f-4960-8d67-9c9bf66ca2f6"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/70f452df-8e59-47d2-b8db-e82af5a13b5e"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/3ecef90d-151b-42e2-bdb3-9d6af4521e5e"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/d76648ab-cb2b-42ab-a778-45fdcd199e3c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/935cf074-8360-466f-b82a-a0a912f333c6"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="935cf074-8360-466f-b82a-a0a912f333c6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="78632037"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/27ed9fd3-a297-4ffb-b40e-e27ba636d037"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="27ed9fd3-a297-4ffb-b40e-e27ba636d037"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="2004-09-15"/> + <address> + <type value="both"/> + <line value="Hindenburgstr. 63b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="63b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Hindenburgstr."/> + </extension> + </line> + <city value="Nord Kayraburg"/> + <postalCode value="51440"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/70f452df-8e59-47d2-b8db-e82af5a13b5e"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="70f452df-8e59-47d2-b8db-e82af5a13b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="020891625"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8772-75652867"/> + </telecom> + <telecom> + <system value="email"/> + <value value="elif.kresse@hooss.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Dieselstr. 718"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="718"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dieselstr."/> + </extension> + </line> + <city value="Kleiberstadt"/> + <postalCode value="09209"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/3ecef90d-151b-42e2-bdb3-9d6af4521e5e"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="3ecef90d-151b-42e2-bdb3-9d6af4521e5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="60"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/7acb4d86-75cf-4927-977e-a996ecdf0de0"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168140040"/> + </identifier> + <display value="Generali"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/dbcaeac6-ef8f-4960-8d67-9c9bf66ca2f6"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="dbcaeac6-ef8f-4960-8d67-9c9bf66ca2f6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="633789165"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/d76648ab-cb2b-42ab-a778-45fdcd199e3c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d76648ab-cb2b-42ab-a778-45fdcd199e3c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/935cf074-8360-466f-b82a-a0a912f333c6"/> + </medicationReference> + <subject> + <reference value="Patient/27ed9fd3-a297-4ffb-b40e-e27ba636d037"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/dbcaeac6-ef8f-4960-8d67-9c9bf66ca2f6"/> + </requester> + <insurance> + <reference value="Coverage/3ecef90d-151b-42e2-bdb3-9d6af4521e5e"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/output.json new file mode 100644 index 00000000..6159c894 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "2745328a-eed1-4ea2-a315-bdf358ec37c4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.530.58" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "662794ff-fde8-4b2b-bc3a-d4bf9e1fff84", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/d11fceac-8c4e-4a53-adda-d1b3a5880640" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d11fceac-8c4e-4a53-adda-d1b3a5880640", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "78632037" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8951db19-eae6-49cf-84e2-8db15df8d8f0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "020891625" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-8772-75652867" + }, { + "system": "email", + "value": "elif.kresse@hooss.com" + } ], + "address": [ { + "type": "both", + "line": [ "Dieselstr. 718" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "718" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Dieselstr." + } ] + } ], + "city": "Kleiberstadt", + "postalCode": "09209", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "de1026d1-96eb-446e-b3dc-06be703c5ec0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "633789165" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/output.xml new file mode 100644 index 00000000..841ea8f9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_2745328a/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2745328a-eed1-4ea2-a315-bdf358ec37c4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.530.58"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="662794ff-fde8-4b2b-bc3a-d4bf9e1fff84"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d11fceac-8c4e-4a53-adda-d1b3a5880640"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d11fceac-8c4e-4a53-adda-d1b3a5880640"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="78632037"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8951db19-eae6-49cf-84e2-8db15df8d8f0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="020891625"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-8772-75652867"/> + </telecom> + <telecom> + <system value="email"/> + <value value="elif.kresse@hooss.com"/> + </telecom> + <address> + <type value="both"/> + <line value="Dieselstr. 718"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="718"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Dieselstr."/> + </extension> + </line> + <city value="Kleiberstadt"/> + <postalCode value="09209"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="de1026d1-96eb-446e-b3dc-06be703c5ec0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="633789165"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/input.xml new file mode 100644 index 00000000..48fbfd2f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="04ef6989-0443-4f78-8c3b-af75b30d8342"/> + <meta> + <lastUpdated value="2024-02-08T19:14:35.238+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.528.64"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:14:35.238+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/a0bb10b0-4003-431b-9348-64e6a02c23d0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a0bb10b0-4003-431b-9348-64e6a02c23d0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/9c2d57d9-a953-4f4a-8390-cfd7d3f22f6f"/> + </subject> + <date value="2024-02-08T19:14:35+01:00"/> + <author> + <reference value="Practitioner/0d7fa00a-f3fd-45dc-9e41-3821332d3cd6"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/b1da4c2f-98cd-468f-bcbb-8f9744dfc316"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/04f7703a-8ac1-4696-991b-8579a3815916"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/08d44885-7cb5-4319-9c4b-55a4040100e9"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/fd02588d-b2f9-4d37-a188-6b7c24382ead"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fd02588d-b2f9-4d37-a188-6b7c24382ead"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87002772"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/9c2d57d9-a953-4f4a-8390-cfd7d3f22f6f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="9c2d57d9-a953-4f4a-8390-cfd7d3f22f6f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1959-08-14"/> + <address> + <type value="both"/> + <line value="Sperberweg 8"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="8"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Sperberweg"/> + </extension> + </line> + <city value="Schön Joey"/> + <postalCode value="26207"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/b1da4c2f-98cd-468f-bcbb-8f9744dfc316"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b1da4c2f-98cd-468f-bcbb-8f9744dfc316"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="472318252"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-726-9527977"/> + </telecom> + <telecom> + <system value="email"/> + <value value="finlay.astafei@seitz.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Weiherstr. 85"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="85"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weiherstr."/> + </extension> + </line> + <city value="Mohammedberg"/> + <postalCode value="42390"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/04f7703a-8ac1-4696-991b-8579a3815916"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="04f7703a-8ac1-4696-991b-8579a3815916"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/b3cc10a1-454d-43bc-9f50-8d3c9bae543f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141041"/> + </identifier> + <display value="KUK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/0d7fa00a-f3fd-45dc-9e41-3821332d3cd6"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0d7fa00a-f3fd-45dc-9e41-3821332d3cd6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="237531105"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/08d44885-7cb5-4319-9c4b-55a4040100e9"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="08d44885-7cb5-4319-9c4b-55a4040100e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fd02588d-b2f9-4d37-a188-6b7c24382ead"/> + </medicationReference> + <subject> + <reference value="Patient/9c2d57d9-a953-4f4a-8390-cfd7d3f22f6f"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/0d7fa00a-f3fd-45dc-9e41-3821332d3cd6"/> + </requester> + <insurance> + <reference value="Coverage/04f7703a-8ac1-4696-991b-8579a3815916"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/output.json new file mode 100644 index 00000000..52410f85 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "50200ff7-f161-417d-b573-65a0f5030721", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.528.64" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "04a3ecfe-3f20-40d8-af33-14d501eae146", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/11b642ce-8a38-40a9-8b6c-07e56449d0a0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "11b642ce-8a38-40a9-8b6c-07e56449d0a0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "87002772" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "1171ce4e-dc57-44ce-a62a-7a40a774ebf7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "472318252" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-726-9527977" + }, { + "system": "email", + "value": "finlay.astafei@seitz.name" + } ], + "address": [ { + "type": "both", + "line": [ "Weiherstr. 85" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "85" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Weiherstr." + } ] + } ], + "city": "Mohammedberg", + "postalCode": "42390", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4af94c73-40ef-46ff-8b33-c919806592d0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "237531105" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/output.xml new file mode 100644 index 00000000..5ac58614 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_50200ff7/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="50200ff7-f161-417d-b573-65a0f5030721"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.528.64"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="04a3ecfe-3f20-40d8-af33-14d501eae146"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/11b642ce-8a38-40a9-8b6c-07e56449d0a0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="11b642ce-8a38-40a9-8b6c-07e56449d0a0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87002772"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1171ce4e-dc57-44ce-a62a-7a40a774ebf7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="472318252"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-726-9527977"/> + </telecom> + <telecom> + <system value="email"/> + <value value="finlay.astafei@seitz.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Weiherstr. 85"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="85"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Weiherstr."/> + </extension> + </line> + <city value="Mohammedberg"/> + <postalCode value="42390"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4af94c73-40ef-46ff-8b33-c919806592d0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="237531105"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/input.xml new file mode 100644 index 00000000..3d3ae811 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="207902f9-6d4f-4a92-933d-d5c8154464b3"/> + <meta> + <lastUpdated value="2024-02-08T19:16:28.420+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.535.43"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:16:28.420+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/278ccb16-70a6-4707-a5bc-7aaaffc552fb"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="278ccb16-70a6-4707-a5bc-7aaaffc552fb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/81b4ac4b-0bec-4177-b230-74f3e2b503dc"/> + </subject> + <date value="2024-02-08T19:16:28+01:00"/> + <author> + <reference value="Practitioner/1dbda1e4-6399-4f21-937d-31e9886b2810"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/6a2b6f05-00e4-4cdc-8f1f-53094da218a4"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/c914b67b-1240-4239-bce9-4cab008e66ee"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/9f7ffe58-d8c5-4e2c-87c5-26ad66976b03"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/bc1c6f86-2c26-4ed2-b717-fd73022e6f53"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bc1c6f86-2c26-4ed2-b717-fd73022e6f53"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87382645"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/81b4ac4b-0bec-4177-b230-74f3e2b503dc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="81b4ac4b-0bec-4177-b230-74f3e2b503dc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1997-07-22"/> + <address> + <type value="both"/> + <line value="Frischenberg 04c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="04c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Frischenberg"/> + </extension> + </line> + <city value="Klein Marten"/> + <postalCode value="57022"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/6a2b6f05-00e4-4cdc-8f1f-53094da218a4"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6a2b6f05-00e4-4cdc-8f1f-53094da218a4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="881916350"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3035-48165913"/> + </telecom> + <telecom> + <system value="email"/> + <value value="emilie.bork@ney.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Kiefernweg 01"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kiefernweg"/> + </extension> + </line> + <city value="Neu Taminoheim"/> + <postalCode value="11986"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/c914b67b-1240-4239-bce9-4cab008e66ee"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="c914b67b-1240-4239-bce9-4cab008e66ee"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="83"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/60859d5d-6962-4b96-b58f-90f71921304d"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141392"/> + </identifier> + <display value="Württembergische"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/1dbda1e4-6399-4f21-937d-31e9886b2810"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1dbda1e4-6399-4f21-937d-31e9886b2810"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="116260144"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/9f7ffe58-d8c5-4e2c-87c5-26ad66976b03"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9f7ffe58-d8c5-4e2c-87c5-26ad66976b03"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bc1c6f86-2c26-4ed2-b717-fd73022e6f53"/> + </medicationReference> + <subject> + <reference value="Patient/81b4ac4b-0bec-4177-b230-74f3e2b503dc"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/1dbda1e4-6399-4f21-937d-31e9886b2810"/> + </requester> + <insurance> + <reference value="Coverage/c914b67b-1240-4239-bce9-4cab008e66ee"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/output.json new file mode 100644 index 00000000..6df43758 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "8e04dafe-7e62-4b2b-bc60-8bd82a287b35", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.535.43" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9e18ace9-4759-4e29-8d5a-f3b0089815c0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/26f41266-25fb-42f5-af32-4cfc670e29c2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "26f41266-25fb-42f5-af32-4cfc670e29c2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "87382645" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9081a384-4435-4c84-8ad7-80492e6a4094", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "881916350" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-3035-48165913" + }, { + "system": "email", + "value": "emilie.bork@ney.de" + } ], + "address": [ { + "type": "both", + "line": [ "Kiefernweg 01" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "01" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Kiefernweg" + } ] + } ], + "city": "Neu Taminoheim", + "postalCode": "11986", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ebd9511c-a9f6-413b-9b42-0ba8d5b61783", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "116260144" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/output.xml new file mode 100644 index 00000000..0054a101 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_8e04dafe/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8e04dafe-7e62-4b2b-bc60-8bd82a287b35"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.535.43"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9e18ace9-4759-4e29-8d5a-f3b0089815c0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/26f41266-25fb-42f5-af32-4cfc670e29c2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="26f41266-25fb-42f5-af32-4cfc670e29c2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="87382645"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9081a384-4435-4c84-8ad7-80492e6a4094"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="881916350"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-3035-48165913"/> + </telecom> + <telecom> + <system value="email"/> + <value value="emilie.bork@ney.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Kiefernweg 01"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kiefernweg"/> + </extension> + </line> + <city value="Neu Taminoheim"/> + <postalCode value="11986"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ebd9511c-a9f6-413b-9b42-0ba8d5b61783"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="116260144"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/input.xml new file mode 100644 index 00000000..ca91b36d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9e9b3d77-4f67-4f1f-bde8-9b9c7160aa8e"/> + <meta> + <lastUpdated value="2024-02-08T19:13:58.052+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.526.70"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:13:58.052+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/eaedf95e-2ce4-4b9e-be17-73ea608526da"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="eaedf95e-2ce4-4b9e-be17-73ea608526da"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/640c9ba3-2649-4faf-9a6b-93d25c7404f8"/> + </subject> + <date value="2024-02-08T19:13:58+01:00"/> + <author> + <reference value="Practitioner/1988c2db-98d0-416e-b624-31c637af6ac4"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/56cea22d-a1cc-4d26-862c-1449bf8984b8"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/79441c9a-c7be-4f9a-a14a-6b890b73d9d2"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/67c52422-5216-4786-beca-f94baf2e43ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/9c18ac42-2969-44aa-b951-c6bfa687b5bf"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9c18ac42-2969-44aa-b951-c6bfa687b5bf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10256692"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/640c9ba3-2649-4faf-9a6b-93d25c7404f8"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="640c9ba3-2649-4faf-9a6b-93d25c7404f8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + <name> + <use value="official"/> + <family value="Angermänn"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Angermänn"/> + </extension> + </family> + <given value="Günther"/> + </name> + <birthDate value="1968-09-01"/> + <address> + <type value="both"/> + <line value="Am Knechtsgraben 357"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="357"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Knechtsgraben"/> + </extension> + </line> + <city value="Olbrichbrunn"/> + <postalCode value="68242"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/56cea22d-a1cc-4d26-862c-1449bf8984b8"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="56cea22d-a1cc-4d26-862c-1449bf8984b8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="030858272"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-7111-25857900"/> + </telecom> + <telecom> + <system value="email"/> + <value value="giuseppe.filipowski@rodowski.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Gierener Weg 17"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Gierener Weg"/> + </extension> + </line> + <city value="Franzisburg"/> + <postalCode value="48462"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/79441c9a-c7be-4f9a-a14a-6b890b73d9d2"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="79441c9a-c7be-4f9a-a14a-6b890b73d9d2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="48"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93a9c42e-bbc9-4d2b-aba0-7459d32b1476"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="168141198"/> + </identifier> + <display value="Gothaer"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/1988c2db-98d0-416e-b624-31c637af6ac4"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1988c2db-98d0-416e-b624-31c637af6ac4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="032950438"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/67c52422-5216-4786-beca-f94baf2e43ad"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="67c52422-5216-4786-beca-f94baf2e43ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9c18ac42-2969-44aa-b951-c6bfa687b5bf"/> + </medicationReference> + <subject> + <reference value="Patient/640c9ba3-2649-4faf-9a6b-93d25c7404f8"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/1988c2db-98d0-416e-b624-31c637af6ac4"/> + </requester> + <insurance> + <reference value="Coverage/79441c9a-c7be-4f9a-a14a-6b890b73d9d2"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/output.json new file mode 100644 index 00000000..cd0e3af7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "d9759800-d1ea-4b22-98a9-74dac8b1b8ba", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.526.70" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3d4183f1-a98b-4e16-820f-20920e2f4fa6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b91fe801-5cc2-4ac8-99d8-ea99afa95631" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b91fe801-5cc2-4ac8-99d8-ea99afa95631", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10256692" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f45d2a26-5ff4-4d28-a519-098687f10930", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "030858272" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "+49-7111-25857900" + }, { + "system": "email", + "value": "giuseppe.filipowski@rodowski.org" + } ], + "address": [ { + "type": "both", + "line": [ "Gierener Weg 17" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "17" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Gierener Weg" + } ] + } ], + "city": "Franzisburg", + "postalCode": "48462", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "8129b606-a9fe-4d6b-8240-9cf67a6d30fd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "032950438" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/output.xml new file mode 100644 index 00000000..e2ec72c7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/005_document_to_sign_d9759800/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d9759800-d1ea-4b22-98a9-74dac8b1b8ba"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.526.70"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3d4183f1-a98b-4e16-820f-20920e2f4fa6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b91fe801-5cc2-4ac8-99d8-ea99afa95631"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b91fe801-5cc2-4ac8-99d8-ea99afa95631"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10256692"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f45d2a26-5ff4-4d28-a519-098687f10930"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="030858272"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="+49-7111-25857900"/> + </telecom> + <telecom> + <system value="email"/> + <value value="giuseppe.filipowski@rodowski.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Gierener Weg 17"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="17"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Gierener Weg"/> + </extension> + </line> + <city value="Franzisburg"/> + <postalCode value="48462"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8129b606-a9fe-4d6b-8240-9cf67a6d30fd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="032950438"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/input.xml new file mode 100644 index 00000000..2d8f769d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7adc4492-5af0-4817-a3bd-d50985fd906c"/> + <meta> + <lastUpdated value="2024-02-08T19:12:22.465+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.798.75"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:12:22.465+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/95f29aff-e1bb-4971-b229-83ee0867f388"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="95f29aff-e1bb-4971-b229-83ee0867f388"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <date value="2024-02-08T19:12:22+01:00"/> + <author> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/b65e10a9-fbf8-424a-b17a-3625a5a73630"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/6425421f-f50a-4a62-b8e5-89f786f709bc"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6425421f-f50a-4a62-b8e5-89f786f709bc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="77712610"/> + </coding> + <text value="Aceterfen"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1963-08-18"/> + <address> + <type value="both"/> + <line value="Friedrich-List-Str. 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Friedrich-List-Str."/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="40934"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="268d5615-319b-448d-884a-ce034b70d01c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="47"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/e11c162b-d22c-4576-88e2-21a9c878c33e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108433248"/> + </identifier> + <display value="Siemens‐Betriebskrankenkasse SBK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/b65e10a9-fbf8-424a-b17a-3625a5a73630"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b65e10a9-fbf8-424a-b17a-3625a5a73630"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-05-08"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6425421f-f50a-4a62-b8e5-89f786f709bc"/> + </medicationReference> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + </requester> + <insurance> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/output.json new file mode 100644 index 00000000..885009d2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "4aec765d-9ab4-4eb4-923c-b1dc93a3dbb8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.798.75" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "59fcea79-fa84-4509-97b1-5645170a210d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-05-08" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:13061707" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/394c3b53-4994-4999-b832-61cd8e37d41e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "394c3b53-4994-4999-b832-61cd8e37d41e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "77712610" + } ], + "text": "Aceterfen" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "c307dcf3-1276-47d8-bb4f-c594d521d305", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "711020854" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0340) 561450343" + }, { + "system": "email", + "value": "saphira.schaffarzik@jungbluth.name" + } ], + "address": [ { + "type": "both", + "line": [ "Am Arenzberg 46b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "46b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Am Arenzberg" + } ] + } ], + "city": "Jessicafeld", + "postalCode": "12141", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ca535729-c425-49cf-9b50-b3ca6c71c159", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "616562658" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/output.xml new file mode 100644 index 00000000..825015bc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_4aec765d/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="4aec765d-9ab4-4eb4-923c-b1dc93a3dbb8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.798.75"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="59fcea79-fa84-4509-97b1-5645170a210d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-05-08"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/394c3b53-4994-4999-b832-61cd8e37d41e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="394c3b53-4994-4999-b832-61cd8e37d41e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="77712610"/> + </coding> + <text value="Aceterfen"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c307dcf3-1276-47d8-bb4f-c594d521d305"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ca535729-c425-49cf-9b50-b3ca6c71c159"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/input.xml new file mode 100644 index 00000000..904005ae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="d04a95ee-2318-4f6f-bbfe-b6d3f91ad18d"/> + <meta> + <lastUpdated value="2024-02-08T19:22:16.011+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.033.001.16"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:22:16.011+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/60826a15-2c18-429e-8f97-27580ebf5fff"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="60826a15-2c18-429e-8f97-27580ebf5fff"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/48cecd0a-359d-4612-9aef-952c8b4f5e76"/> + </subject> + <date value="2024-02-08T19:22:16+01:00"/> + <author> + <reference value="Practitioner/7098d491-104d-41b2-88ba-47c8b726742e"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/61f02908-fa5a-4a22-b260-38df7e66e35e"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/61833af2-097b-4f8a-bd53-32092d694fe3"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/3a829bdb-804e-43d7-82ce-a52023ecb34d"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/0f8c77f3-fc49-4c5a-8331-5b8516251d4d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0f8c77f3-fc49-4c5a-8331-5b8516251d4d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="67209235"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/48cecd0a-359d-4612-9aef-952c8b4f5e76"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="48cecd0a-359d-4612-9aef-952c8b4f5e76"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110488614"/> + </identifier> + <name> + <use value="official"/> + <family value="Hütter"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hütter"/> + </extension> + </family> + <given value="Leonie"/> + </name> + <birthDate value="1991-07-25"/> + <address> + <type value="both"/> + <line value="Drachenfelsstr. 27a"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27a"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Drachenfelsstr."/> + </extension> + </line> + <city value="Süd Maira"/> + <postalCode value="47752"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/61f02908-fa5a-4a22-b260-38df7e66e35e"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="61f02908-fa5a-4a22-b260-38df7e66e35e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="476736714"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0048) 622241522"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ismael.riethmüller@brauer.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Kanalstr. 01c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kanalstr."/> + </extension> + </line> + <city value="Griemburg"/> + <postalCode value="85414"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/61833af2-097b-4f8a-bd53-32092d694fe3"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="61833af2-097b-4f8a-bd53-32092d694fe3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="52"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/75b014b1-f45c-4ae8-b4b1-170bb155993f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="102122557"/> + </identifier> + <display value="BKK exklusiv"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/7098d491-104d-41b2-88ba-47c8b726742e"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7098d491-104d-41b2-88ba-47c8b726742e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="874457048"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/3a829bdb-804e-43d7-82ce-a52023ecb34d"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3a829bdb-804e-43d7-82ce-a52023ecb34d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0f8c77f3-fc49-4c5a-8331-5b8516251d4d"/> + </medicationReference> + <subject> + <reference value="Patient/48cecd0a-359d-4612-9aef-952c8b4f5e76"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/7098d491-104d-41b2-88ba-47c8b726742e"/> + </requester> + <insurance> + <reference value="Coverage/61833af2-097b-4f8a-bd53-32092d694fe3"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/output.json new file mode 100644 index 00000000..eaee30f5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "57eabb67-34e5-4d1c-ba94-b6feeeb13f06", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "209.000.000.033.001.16" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "968c2621-692e-49af-99b1-ac15c26e4937", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/d7784ecb-f022-4551-8a86-c5e73c66b0ce" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d7784ecb-f022-4551-8a86-c5e73c66b0ce", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "67209235" + } ], + "text": "Zytostatika_WF209" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "c6ddd30e-665e-4232-b053-70b20b7721fe", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "476736714" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0048) 622241522" + }, { + "system": "email", + "value": "ismael.riethmüller@brauer.org" + } ], + "address": [ { + "type": "both", + "line": [ "Kanalstr. 01c" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "01c" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Kanalstr." + } ] + } ], + "city": "Griemburg", + "postalCode": "85414", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "39bc08ec-ca09-4fce-8d1d-ecb551505d8e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "874457048" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/output.xml new file mode 100644 index 00000000..7568beca --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/009_document_to_sign_57eabb67/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="57eabb67-34e5-4d1c-ba94-b6feeeb13f06"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="209.000.000.033.001.16"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="968c2621-692e-49af-99b1-ac15c26e4937"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d7784ecb-f022-4551-8a86-c5e73c66b0ce"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d7784ecb-f022-4551-8a86-c5e73c66b0ce"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="67209235"/> + </coding> + <text value="Zytostatika_WF209"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c6ddd30e-665e-4232-b053-70b20b7721fe"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="476736714"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0048) 622241522"/> + </telecom> + <telecom> + <system value="email"/> + <value value="ismael.riethmüller@brauer.org"/> + </telecom> + <address> + <type value="both"/> + <line value="Kanalstr. 01c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="01c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Kanalstr."/> + </extension> + </line> + <city value="Griemburg"/> + <postalCode value="85414"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="39bc08ec-ca09-4fce-8d1d-ecb551505d8e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="874457048"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/input.xml new file mode 100644 index 00000000..879e7ecb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="71606533-794f-4fff-ad5a-56fdc7a56a9b"/> + <meta> + <lastUpdated value="2024-02-08T19:12:22.875+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.799.72"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:12:22.875+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/a5444495-f33d-4a18-8572-023a77b4ce8c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a5444495-f33d-4a18-8572-023a77b4ce8c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <date value="2024-02-08T19:12:22+01:00"/> + <author> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/db6c9edc-a925-4dc3-b5f2-8c4522ac395f"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/b4550149-210c-4e86-8623-607e482400e0"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b4550149-210c-4e86-8623-607e482400e0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="25184159"/> + </coding> + <text value="Aciamior"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1963-08-18"/> + <address> + <type value="both"/> + <line value="Friedrich-List-Str. 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Friedrich-List-Str."/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="40934"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="268d5615-319b-448d-884a-ce034b70d01c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="47"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/e11c162b-d22c-4576-88e2-21a9c878c33e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108433248"/> + </identifier> + <display value="Siemens‐Betriebskrankenkasse SBK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/db6c9edc-a925-4dc3-b5f2-8c4522ac395f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="db6c9edc-a925-4dc3-b5f2-8c4522ac395f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-08-06"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b4550149-210c-4e86-8623-607e482400e0"/> + </medicationReference> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + </requester> + <insurance> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/output.json new file mode 100644 index 00000000..1f370caa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "355db86f-a843-4f81-b771-6fe0668d29fa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.799.72" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "aa5284a3-c0cb-4d11-8bda-a61a72e6b2b2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 3 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-08-06" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:13061707" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/08c06ace-03b4-4771-a042-ee8927770cbb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "08c06ace-03b4-4771-a042-ee8927770cbb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "25184159" + } ], + "text": "Aciamior" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f191451b-0679-4e51-8d00-fed0f156f8eb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "711020854" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0340) 561450343" + }, { + "system": "email", + "value": "saphira.schaffarzik@jungbluth.name" + } ], + "address": [ { + "type": "both", + "line": [ "Am Arenzberg 46b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "46b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Am Arenzberg" + } ] + } ], + "city": "Jessicafeld", + "postalCode": "12141", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d4ad1986-ff6b-4d09-b9b7-8d5fe36fcd1d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "616562658" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/output.xml new file mode 100644 index 00000000..276b94ef --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/016_document_to_sign_355db86f/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="355db86f-a843-4f81-b771-6fe0668d29fa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.799.72"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="aa5284a3-c0cb-4d11-8bda-a61a72e6b2b2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-08-06"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/08c06ace-03b4-4771-a042-ee8927770cbb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="08c06ace-03b4-4771-a042-ee8927770cbb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="25184159"/> + </coding> + <text value="Aciamior"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f191451b-0679-4e51-8d00-fed0f156f8eb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d4ad1986-ff6b-4d09-b9b7-8d5fe36fcd1d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/input.xml new file mode 100644 index 00000000..54c480a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/input.xml @@ -0,0 +1,402 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7b2ca3fe-d2e2-4d47-9f1b-45336c9e69c1"/> + <meta> + <lastUpdated value="2024-02-08T19:12:23.333+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.800.69"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:12:23.333+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/ae11f11c-ef4b-4ff4-b103-df25553c3cbb"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ae11f11c-ef4b-4ff4-b103-df25553c3cbb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <date value="2024-02-08T19:12:23+01:00"/> + <author> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/4b0e36c2-247b-461f-b6f6-064c9588bf95"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/26ee32f9-70d5-485f-9342-c416105339a3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="26ee32f9-70d5-485f-9342-c416105339a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="29470620"/> + </coding> + <text value="Aceternin"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1963-08-18"/> + <address> + <type value="both"/> + <line value="Friedrich-List-Str. 26"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="26"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Friedrich-List-Str."/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="40934"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/268d5615-319b-448d-884a-ce034b70d01c"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="268d5615-319b-448d-884a-ce034b70d01c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="47"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/e11c162b-d22c-4576-88e2-21a9c878c33e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108433248"/> + </identifier> + <display value="Siemens‐Betriebskrankenkasse SBK"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <name> + <use value="official"/> + <family value="Schraßer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schraßer"/> + </extension> + </family> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/4b0e36c2-247b-461f-b6f6-064c9588bf95"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4b0e36c2-247b-461f-b6f6-064c9588bf95"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/26ee32f9-70d5-485f-9342-c416105339a3"/> + </medicationReference> + <subject> + <reference value="Patient/4b6f4f8f-ef81-4b9a-a079-630b23c38984"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/bc5f90a0-07d4-4c91-a441-a17cdc39377b"/> + </requester> + <insurance> + <reference value="Coverage/8431d0d9-9509-4e8a-87c3-7d9963dbb39b"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/output.json new file mode 100644 index 00000000..9b32dab5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/output.json @@ -0,0 +1,233 @@ +{ + "resourceType": "Parameters", + "id": "2d819774-99b0-4f48-9353-fef2467275c6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.800.69" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "ac5d4170-2c41-496d-a8f3-e4f8132b0ba0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-04" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:13061707" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4244e348-651a-4469-83c5-27a30bfd4c8a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4244e348-651a-4469-83c5-27a30bfd4c8a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "29470620" + } ], + "text": "Aceternin" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "42b40601-6b7f-4ad7-a97b-1daaa983ae63", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "711020854" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Schraßer", + "telecom": [ { + "system": "phone", + "value": "(0340) 561450343" + }, { + "system": "email", + "value": "saphira.schaffarzik@jungbluth.name" + } ], + "address": [ { + "type": "both", + "line": [ "Am Arenzberg 46b" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "46b" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Am Arenzberg" + } ] + } ], + "city": "Jessicafeld", + "postalCode": "12141", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "fe2f4158-8ec9-47fc-9ada-159c92dffac7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "616562658" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Dr. Schraßer", + "family": "Schraßer", + "given": [ "Dr." ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/output.xml new file mode 100644 index 00000000..c8c04bc3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/023_document_to_sign_2d819774/output.xml @@ -0,0 +1,236 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2d819774-99b0-4f48-9353-fef2467275c6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.800.69"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ac5d4170-2c41-496d-a8f3-e4f8132b0ba0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-04"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:13061707"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4244e348-651a-4469-83c5-27a30bfd4c8a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4244e348-651a-4469-83c5-27a30bfd4c8a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="29470620"/> + </coding> + <text value="Aceternin"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="42b40601-6b7f-4ad7-a97b-1daaa983ae63"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="711020854"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Schraßer"/> + <telecom> + <system value="phone"/> + <value value="(0340) 561450343"/> + </telecom> + <telecom> + <system value="email"/> + <value value="saphira.schaffarzik@jungbluth.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Am Arenzberg 46b"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="46b"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Am Arenzberg"/> + </extension> + </line> + <city value="Jessicafeld"/> + <postalCode value="12141"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="fe2f4158-8ec9-47fc-9ada-159c92dffac7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="616562658"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Dr. Schraßer"/> + <family value="Schraßer"/> + <given value="Dr."/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/input.xml new file mode 100644 index 00000000..ae66cfbc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c44ddc5b-21f5-4ce3-995d-ab5ca2633154"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/a77cc2f2-5574-4292-b1b5-2633b7989970"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a77cc2f2-5574-4292-b1b5-2633b7989970"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/00a18271-c4fd-40b6-93a2-d913e51dded6"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/00a18271-c4fd-40b6-93a2-d913e51dded6"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="00a18271-c4fd-40b6-93a2-d913e51dded6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2022-05-20"/> + <end value="2022-06-30"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/output.json new file mode 100644 index 00000000..75056caa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "0904076e-30f2-4182-8d33-d26029efd25c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.010.12" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "67e06d3f-529c-4198-ba5e-a440cbbc7614", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2022-05-20", + "end": "2022-06-30" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a3452998-74a6-4e52-9d69-4b1e4db3434d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a3452998-74a6-4e52-9d69-4b1e4db3434d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "69f0a745-9fad-41ce-a2e0-ba25fc646a7c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a476713f-2c93-4618-90b9-940dbba51235", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/output.xml new file mode 100644 index 00000000..eabf93cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_1_0904076e/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0904076e-30f2-4182-8d33-d26029efd25c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="67e06d3f-529c-4198-ba5e-a440cbbc7614"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2022-05-20"/> + <end value="2022-06-30"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3452998-74a6-4e52-9d69-4b1e4db3434d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3452998-74a6-4e52-9d69-4b1e4db3434d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="69f0a745-9fad-41ce-a2e0-ba25fc646a7c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a476713f-2c93-4618-90b9-940dbba51235"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/input.xml new file mode 100644 index 00000000..79301704 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7031f7f3-cf51-4e77-82d7-b9bdb0a5959f"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d9e03f5a-9b53-4f21-b0d6-c7e86fdee0c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d9e03f5a-9b53-4f21-b0d6-c7e86fdee0c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2022-06-15"/> + <end value="2022-09-30"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/output.json new file mode 100644 index 00000000..1fdcf1e5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "d27c0e14-97ba-45df-b92f-cea84fc6bfc2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.015.94" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "26fffffe-59e3-43db-a9d6-36da62308c34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2022-06-15", + "end": "2022-09-30" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f28ed51f-d7e0-4ac9-933f-79fea240f2cb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f28ed51f-d7e0-4ac9-933f-79fea240f2cb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "291f53f9-ef73-4595-b594-c2250c4d649e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "bf150290-0dda-4e2b-a9e2-f86a816feab8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/output.xml new file mode 100644 index 00000000..cb7cd357 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_2_d27c0e14/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d27c0e14-97ba-45df-b92f-cea84fc6bfc2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="26fffffe-59e3-43db-a9d6-36da62308c34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2022-06-15"/> + <end value="2022-09-30"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f28ed51f-d7e0-4ac9-933f-79fea240f2cb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f28ed51f-d7e0-4ac9-933f-79fea240f2cb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="291f53f9-ef73-4595-b594-c2250c4d649e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bf150290-0dda-4e2b-a9e2-f86a816feab8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/input.xml new file mode 100644 index 00000000..3a97f315 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="f70585e0-82f9-4d3d-b248-94504ccf6a66"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/1868bb7c-c1a6-48a6-a327-05ff8d24c64a"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1868bb7c-c1a6-48a6-a327-05ff8d24c64a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/76b5767d-55a5-4233-8f85-e15a24a5193a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/76b5767d-55a5-4233-8f85-e15a24a5193a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="76b5767d-55a5-4233-8f85-e15a24a5193a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2022-09-15"/> + <end value="2022-12-31"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/output.json new file mode 100644 index 00000000..a7f57a7f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "552a0944-2afb-4238-b4ab-41dc8066e599", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.016.91" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9657a7cb-f603-4d17-97a7-02da9710c39a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 3 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2022-09-15", + "end": "2022-12-31" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c9d87165-9f0f-4ee8-a8e6-0bfc10c19a6c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c9d87165-9f0f-4ee8-a8e6-0bfc10c19a6c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2409e0e6-5f1c-4df3-b44b-73fb63a9c601", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "8252a92c-af75-40c5-8ec6-4dccd48bd1cb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/output.xml new file mode 100644 index 00000000..7aef6252 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_3_552a0944/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="552a0944-2afb-4238-b4ab-41dc8066e599"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9657a7cb-f603-4d17-97a7-02da9710c39a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2022-09-15"/> + <end value="2022-12-31"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c9d87165-9f0f-4ee8-a8e6-0bfc10c19a6c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c9d87165-9f0f-4ee8-a8e6-0bfc10c19a6c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2409e0e6-5f1c-4df3-b44b-73fb63a9c601"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8252a92c-af75-40c5-8ec6-4dccd48bd1cb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/input.xml new file mode 100644 index 00000000..a5a20395 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/input.xml @@ -0,0 +1,407 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="15da065c-5b75-4acf-a2ba-1355de821d6e"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/f62c91e7-e280-4d32-961b-b07168ab47d7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f62c91e7-e280-4d32-961b-b07168ab47d7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/1e923204-6866-4030-a460-2ce5bd9db26b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/1e923204-6866-4030-a460-2ce5bd9db26b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1e923204-6866-4030-a460-2ce5bd9db26b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2022-12-01"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/output.json new file mode 100644 index 00000000..72f8a59e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/output.json @@ -0,0 +1,224 @@ +{ + "resourceType": "Parameters", + "id": "2f23f99c-d297-4e02-9d60-261a226d526e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.017.88" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c27f70d6-02ee-4860-823f-f8465d7be21a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2022-12-01" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a07db1a9-d7f9-409d-9a23-53f42fd0df8c" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a07db1a9-d7f9-409d-9a23-53f42fd0df8c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "dfc81a1c-71b7-40e1-9669-495a6173c83b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "38d044d2-c90c-4abe-8914-3c44abc0a65f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/output.xml new file mode 100644 index 00000000..b0a91a65 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_10_4_2f23f99c/output.xml @@ -0,0 +1,229 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2f23f99c-d297-4e02-9d60-261a226d526e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c27f70d6-02ee-4860-823f-f8465d7be21a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2022-12-01"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a07db1a9-d7f9-409d-9a23-53f42fd0df8c"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a07db1a9-d7f9-409d-9a23-53f42fd0df8c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="dfc81a1c-71b7-40e1-9669-495a6173c83b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="38d044d2-c90c-4abe-8914-3c44abc0a65f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/input.xml new file mode 100644 index 00000000..bd9ea61c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/input.xml @@ -0,0 +1,379 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="690a7f01-058e-492a-b1dc-d6d8c8a30a59"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8c5aad28-6029-452d-8f97-0bf213b1a0e3"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8c5aad28-6029-452d-8f97-0bf213b1a0e3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/e538cd5e-883e-4645-af3a-49352fece39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/e538cd5e-883e-4645-af3a-49352fece39b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e538cd5e-883e-4645-af3a-49352fece39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="true"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + </medicationReference> + <subject> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </subject> + <authoredOn value="2021-04-03"/> + <requester> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + </requester> + <insurance> + <reference value="Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUP"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + <name> + <use value="official"/> + <family value="Klein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Klein"/> + </extension> + </family> + <given value="Teddy"/> + </name> + <birthDate value="2020-02-29"/> + <address> + <type value="both"/> + <line value="Roritzerstraße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Roritzerstraße"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93047"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <name> + <use value="official"/> + <family value="Weber"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Weber"/> + </extension> + </family> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Kinder- und Jugendmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="76696615-4c18-410e-bcf9-382590c6df3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108416214"/> + </identifier> + <display value="AOK Bayern Die Gesundh."/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/output.json new file mode 100644 index 00000000..065ef5cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/output.json @@ -0,0 +1,205 @@ +{ + "resourceType": "Parameters", + "id": "1a369537-42d5-42d6-9a8b-b86e244b9d9d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.003.33" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-03" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "4d5b9c41-5413-423f-85fb-1383af7285de", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/89e534cd-2cce-4853-80c1-8ad70343c6b7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-03", + "dosageInstruction": [ { + "text": "1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "89e534cd-2cce-4853-80c1-8ad70343c6b7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03386388" + } ], + "text": "INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SUP" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6e5a90b3-5d9a-4a0a-ba5e-599d96563301", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "687777700" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Kinderarztpraxis", + "telecom": [ { + "system": "phone", + "value": "09411234567" + } ], + "address": [ { + "type": "both", + "line": [ "Yorckstraße 15", "Hinterhaus" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "15" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Yorckstraße" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Hinterhaus" + } ] + } ], + "city": "Regensburg", + "postalCode": "93049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "606290c4-806a-44da-b053-7755a4afe25a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "456456534" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Maximilian Weber", + "family": "Weber", + "given": [ "Maximilian" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/output.xml new file mode 100644 index 00000000..a0e2b6a8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_11_1a369537/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1a369537-42d5-42d6-9a8b-b86e244b9d9d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-03"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4d5b9c41-5413-423f-85fb-1383af7285de"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/89e534cd-2cce-4853-80c1-8ad70343c6b7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-03"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="89e534cd-2cce-4853-80c1-8ad70343c6b7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUP"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6e5a90b3-5d9a-4a0a-ba5e-599d96563301"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="606290c4-806a-44da-b053-7755a4afe25a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Maximilian Weber"/> + <family value="Weber"/> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/input.xml new file mode 100644 index 00000000..c129adfd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="14f3cff7-f921-429e-98ca-c65dcb367ba9"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8068fd3c-6eed-4b58-9840-c0661e48b6a9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8068fd3c-6eed-4b58-9840-c0661e48b6a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="04"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/fe73acaf-c683-460d-9961-3ae6f87068f2"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/fe73acaf-c683-460d-9961-3ae6f87068f2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fe73acaf-c683-460d-9961-3ae6f87068f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + </medicationReference> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <authoredOn value="2021-04-03"/> + <requester> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + </requester> + <insurance> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + <name> + <use value="official"/> + <family value="Pan"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Pan"/> + </extension> + </family> + <given value="Peter"/> + </name> + <birthDate value="1972"/> + <address> + <type value="both"/> + <line value="Siebengebirgsstraße 59"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siebengebirgsstraße"/> + </extension> + </line> + <line value="33. Obergeschoss - Hinterhof, halbrechts"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="33. Obergeschoss - Hinterhof, halbrechts"/> + </extension> + </line> + <city value="Königswinter"/> + <postalCode value="53639"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <name> + <use value="official"/> + <family value="Meyer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Meyer"/> + </extension> + </family> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin der Onkologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101377508"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/output.json new file mode 100644 index 00000000..ae8324ec --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/output.json @@ -0,0 +1,217 @@ +{ + "resourceType": "Parameters", + "id": "2aa01d66-e00c-45d2-b137-0df1496b63bf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.011.09" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-03" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d6e12ce3-c098-48db-817e-8478da64371b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1d2cb831-4725-4d0e-9b5c-c78539c8cdbd" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-03", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1d2cb831-4725-4d0e-9b5c-c78539c8cdbd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04773414" + } ], + "text": "Doxycyclin AL 200 T, 10 Tabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "578638d6-cca0-498d-a52b-e7a97dc2d403", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "757299999" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Krankenhaus", + "telecom": [ { + "system": "phone", + "value": "0309876543" + }, { + "system": "email", + "value": "krankenhaus@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Wegelystraße 3" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "3" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Wegelystraße" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "978a9bf1-9bf6-4212-acac-28e50103bb03", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "159753527" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Mia Meyer", + "family": "Meyer", + "given": [ "Mia" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/output.xml new file mode 100644 index 00000000..81d0efba --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_12_2aa01d66/output.xml @@ -0,0 +1,220 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2aa01d66-e00c-45d2-b137-0df1496b63bf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-03"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d6e12ce3-c098-48db-817e-8478da64371b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1d2cb831-4725-4d0e-9b5c-c78539c8cdbd"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-03"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1d2cb831-4725-4d0e-9b5c-c78539c8cdbd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="578638d6-cca0-498d-a52b-e7a97dc2d403"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="978a9bf1-9bf6-4212-acac-28e50103bb03"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Mia Meyer"/> + <family value="Meyer"/> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/input.xml new file mode 100644 index 00000000..8fb5aa07 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/input.xml @@ -0,0 +1,397 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ee9d3b92-7667-4dfe-8331-f768b2eaca3c"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/ccb7da6a-dcd7-45d1-926f-061c25222ddd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ccb7da6a-dcd7-45d1-926f-061c25222ddd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="10"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/07aca829-ef92-42a5-9163-778f2b06a82e"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/07aca829-ef92-42a5-9163-778f2b06a82e"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="07aca829-ef92-42a5-9163-778f2b06a82e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2021-04-03"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01256262"/> + </coding> + <text value="Losartan STADA® 100mg 98 Filmtbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="98"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin: Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/output.json new file mode 100644 index 00000000..79e8856d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/output.json @@ -0,0 +1,217 @@ +{ + "resourceType": "Parameters", + "id": "8d85e45c-9e1f-4be4-9f4b-a125db836e94", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.012.06" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-03" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "52c49cc2-847f-4334-af76-c9fdbbdd8417", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/01ddf388-d0fe-4ecf-9440-e2914b054c53" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-03", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "01ddf388-d0fe-4ecf-9440-e2914b054c53", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01256262" + } ], + "text": "Losartan STADA® 100mg 98 Filmtbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "98" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9522ee61-8166-467c-bb3d-1b7cf4652046", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "320c14f0-bdf2-4198-a846-15bb35676bb6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/output.xml new file mode 100644 index 00000000..cbb88850 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_13_8d85e45c/output.xml @@ -0,0 +1,221 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8d85e45c-9e1f-4be4-9f4b-a125db836e94"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-03"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="52c49cc2-847f-4334-af76-c9fdbbdd8417"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/01ddf388-d0fe-4ecf-9440-e2914b054c53"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-03"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="01ddf388-d0fe-4ecf-9440-e2914b054c53"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01256262"/> + </coding> + <text value="Losartan STADA® 100mg 98 Filmtbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="98"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9522ee61-8166-467c-bb3d-1b7cf4652046"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="320c14f0-bdf2-4198-a846-15bb35676bb6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/input.xml new file mode 100644 index 00000000..d8d12e55 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/input.xml @@ -0,0 +1,384 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="753fff3b-5373-4f8d-aa22-852792e799d8"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2021-04-03"/> + <requester> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="704db507-79b4-44a1-84b8-344255ad7e36"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1984-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <name> + <use value="official"/> + <family value="Wagner"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Wagner"/> + </extension> + </family> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Gynäkologie und Geburtshilfe"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/output.json new file mode 100644 index 00000000..44187507 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/output.json @@ -0,0 +1,209 @@ +{ + "resourceType": "Parameters", + "id": "63ade791-ba05-4321-b55f-836e377e9f34", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-03" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9e2fe6c9-1e20-4b21-b001-3f35099ff767", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c09aa07c-d805-4c82-ad7f-b722961975f7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-03", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c09aa07c-d805-4c82-ad7f-b722961975f7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0d99712e-f3c9-401c-8c71-6281d9c93945", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "722222200" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Frauenheilkunde und Geburtshilfe", + "telecom": [ { + "system": "phone", + "value": "030741852963" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "9275d86a-4c36-4e14-a9b9-e30990f881d4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "167761816" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Prof. Dr. med Elias Wagner", + "family": "Wagner", + "given": [ "Elias" ], + "prefix": [ "Prof. Dr. med" ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/output.xml new file mode 100644 index 00000000..5d0f1b84 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_14_63ade791/output.xml @@ -0,0 +1,211 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="63ade791-ba05-4321-b55f-836e377e9f34"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-03"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9e2fe6c9-1e20-4b21-b001-3f35099ff767"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c09aa07c-d805-4c82-ad7f-b722961975f7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-03"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c09aa07c-d805-4c82-ad7f-b722961975f7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0d99712e-f3c9-401c-8c71-6281d9c93945"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9275d86a-4c36-4e14-a9b9-e30990f881d4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Prof. Dr. med Elias Wagner"/> + <family value="Wagner"/> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/input.xml new file mode 100644 index 00000000..1fe9e77f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/input.xml @@ -0,0 +1,388 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="34abcf97-6693-422e-b6f0-0ba9b232843e"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2300d28c-c5db-45ce-bcb6-1d3bc126f846"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2300d28c-c5db-45ce-bcb6-1d3bc126f846"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/f3de8250-06d8-492a-8f53-978d97a21836"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/f3de8250-06d8-492a-8f53-978d97a21836"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f3de8250-06d8-492a-8f53-978d97a21836"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2021-04-03"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08671219"/> + </coding> + <text value="Aciclovir 800 - 1 A Pharma® 35 Tbl. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/output.json new file mode 100644 index 00000000..ad06e516 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "b8505bd0-b90e-4369-89d1-b1081f3f2575", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.014.97" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-03" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8afd7cc5-ab19-464b-a49c-2063d5b35854", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3bbb9a17-5491-43b8-b35a-9c6c7b4382c0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-03", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3bbb9a17-5491-43b8-b35a-9c6c7b4382c0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08671219" + } ], + "text": "Aciclovir 800 - 1 A Pharma® 35 Tbl. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6dd5dc60-7e29-4747-aae7-cd70b7328097", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2a7209ad-2252-47ce-acae-5b940e0c13ea", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/output.xml new file mode 100644 index 00000000..7d38085d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_15_b8505bd0/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b8505bd0-b90e-4369-89d1-b1081f3f2575"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-03"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8afd7cc5-ab19-464b-a49c-2063d5b35854"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3bbb9a17-5491-43b8-b35a-9c6c7b4382c0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-03"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3bbb9a17-5491-43b8-b35a-9c6c7b4382c0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08671219"/> + </coding> + <text value="Aciclovir 800 - 1 A Pharma® 35 Tbl. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6dd5dc60-7e29-4747-aae7-cd70b7328097"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2a7209ad-2252-47ce-acae-5b940e0c13ea"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/input.xml new file mode 100644 index 00000000..e6e9fe0a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/input.xml @@ -0,0 +1,384 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="44420ed9-7388-4be5-acc5-9c124fad9f34"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin: Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/output.json new file mode 100644 index 00000000..bbc71f5f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/output.json @@ -0,0 +1,203 @@ +{ + "resourceType": "Parameters", + "id": "f40a23d0-0a40-468b-90c0-1f35e275b9ee", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.006.24" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1b7b7e0d-fdf9-4341-b93c-2fa3f5631168", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/fc6deeb1-9868-415c-be83-24b34baea77a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fc6deeb1-9868-415c-be83-24b34baea77a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00814665" + } ], + "text": "Januvia® 50 mg 28 Filmtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "432c2d7b-6c20-4722-ad9c-74ede45b134a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "bf5ddba9-9cf7-44ca-bc60-4b09f8b4041c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/output.xml new file mode 100644 index 00000000..fc0295af --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_1_f40a23d0/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f40a23d0-0a40-468b-90c0-1f35e275b9ee"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1b7b7e0d-fdf9-4341-b93c-2fa3f5631168"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fc6deeb1-9868-415c-be83-24b34baea77a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fc6deeb1-9868-415c-be83-24b34baea77a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="432c2d7b-6c20-4722-ad9c-74ede45b134a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bf5ddba9-9cf7-44ca-bc60-4b09f8b4041c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/input.xml new file mode 100644 index 00000000..2a6cb1e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6d5162b2-abc9-4c0c-9c46-4deb3b64edd7"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/output.json new file mode 100644 index 00000000..f13515a1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/output.json @@ -0,0 +1,210 @@ +{ + "resourceType": "Parameters", + "id": "d5f08b4e-68af-40e4-b732-0745e43255be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.21" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d61dbdc8-c5da-47bb-93c8-5ba7320eca8e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/97e3fb51-ce67-40c1-9c81-11bea0df2b81" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Patient erneut auf Anwendung der Schmelztabletten hinweisen" + } ], + "dosageInstruction": [ { + "text": "1x täglich" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "97e3fb51-ce67-40c1-9c81-11bea0df2b81", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08850519" + } ], + "text": "Olanzapin Heumann 20mg 70 Schmelztbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SMT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "70" + } ], + "unit": "Stück", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d3fdd5c1-e72e-49f5-898d-a513a4623ff0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e2147690-8afb-4361-bac9-1da6c0b64785", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/output.xml new file mode 100644 index 00000000..64c8a653 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_2_d5f08b4e/output.xml @@ -0,0 +1,214 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d5f08b4e-68af-40e4-b732-0745e43255be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d61dbdc8-c5da-47bb-93c8-5ba7320eca8e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/97e3fb51-ce67-40c1-9c81-11bea0df2b81"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="97e3fb51-ce67-40c1-9c81-11bea0df2b81"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d3fdd5c1-e72e-49f5-898d-a513a4623ff0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e2147690-8afb-4361-bac9-1da6c0b64785"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/input.xml new file mode 100644 index 00000000..d48e05fb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="846d07e6-4776-4ae1-8749-0b9334314b97"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.034.37"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/fc7c4f58-5141-463d-a8f6-543c8d951042"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="fc7c4f58-5141-463d-a8f6-543c8d951042"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c18ca813-66ac-49f6-808a-a90fd1ab3563"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c18ca813-66ac-49f6-808a-a90fd1ab3563"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c18ca813-66ac-49f6-808a-a90fd1ab3563"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d344ab61-4321-448f-83af-a2c95ae242a4"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/d344ab61-4321-448f-83af-a2c95ae242a4"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d344ab61-4321-448f-83af-a2c95ae242a4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01347970"/> + </coding> + <text value="Roxythromycin 300 Heumann FTA 7 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/output.json new file mode 100644 index 00000000..8178050a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "1ab932b8-1e76-4fdb-b2b3-da1e73f9071e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.034.37" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "075be50a-8321-4276-a0c7-2e6316ff235f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/25d8175b-e23d-48a3-a293-8b323f1233e3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "25d8175b-e23d-48a3-a293-8b323f1233e3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01347970" + } ], + "text": "Roxythromycin 300 Heumann FTA 7 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "010ce598-85ff-4a78-9d6c-eacc3b7e73f2", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "64c59eff-0204-4f2e-80d0-dac52dc83668", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/output.xml new file mode 100644 index 00000000..771a9a60 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_30_1ab932b8/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1ab932b8-1e76-4fdb-b2b3-da1e73f9071e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.034.37"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="075be50a-8321-4276-a0c7-2e6316ff235f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/25d8175b-e23d-48a3-a293-8b323f1233e3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="25d8175b-e23d-48a3-a293-8b323f1233e3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01347970"/> + </coding> + <text value="Roxythromycin 300 Heumann FTA 7 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="010ce598-85ff-4a78-9d6c-eacc3b7e73f2"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="64c59eff-0204-4f2e-80d0-dac52dc83668"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/input.xml new file mode 100644 index 00000000..cdbc1dbe --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7f12495e-709a-47cb-b589-995356926876"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.035.34"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/dc3b185f-b1f3-458d-b3ba-ac099a0225a0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="dc3b185f-b1f3-458d-b3ba-ac099a0225a0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/416b7bc3-7483-46ba-bc67-306bf671c569"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/008b6625-1ad8-4719-9b5f-1104485b9726"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/9af316b6-b8f6-42a9-85d7-fd1984a54966"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/008b6625-1ad8-4719-9b5f-1104485b9726"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="008b6625-1ad8-4719-9b5f-1104485b9726"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9e43b5c5-6b34-4762-b196-1db3633e63c4"/> + </medicationReference> + <subject> + <reference value="Patient/416b7bc3-7483-46ba-bc67-306bf671c569"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/9af316b6-b8f6-42a9-85d7-fd1984a54966"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/9e43b5c5-6b34-4762-b196-1db3633e63c4"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9e43b5c5-6b34-4762-b196-1db3633e63c4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00067808"/> + </coding> + <text value="Remicade 100MG Pulver PIK 4ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PIK"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/416b7bc3-7483-46ba-bc67-306bf671c569"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="416b7bc3-7483-46ba-bc67-306bf671c569"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="D111111110"/> + </identifier> + <name> + <use value="official"/> + <family value="Birke"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Birke"/> + </extension> + </family> + <given value="Bruno"/> + </name> + <birthDate value="2002-02-02"/> + <address> + <type value="both"/> + <line value="Markt 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Markt"/> + </extension> + </line> + <city value="Güstrow"/> + <postalCode value="18273"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/9af316b6-b8f6-42a9-85d7-fd1984a54966"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="9af316b6-b8f6-42a9-85d7-fd1984a54966"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="78"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/416b7bc3-7483-46ba-bc67-306bf671c569"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="100105006"/> + </identifier> + <display value="KN Knappschaft"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/output.json new file mode 100644 index 00000000..b7fa8306 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "e0cb3cbc-0897-4521-aee4-e19b9fc8a798", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.035.34" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7593eeea-5fd2-4847-80b3-b927487ea854", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/2fea5845-b2a2-4cd0-9b57-0c92bb9d7d1d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "2fea5845-b2a2-4cd0-9b57-0c92bb9d7d1d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00067808" + } ], + "text": "Remicade 100MG Pulver PIK 4ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PIK" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "fc570fcf-6b9b-44ba-9b39-6a822c3c7a88", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "8171969d-76e2-484d-8078-655d6a37d70b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/output.xml new file mode 100644 index 00000000..a22f68d6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_31_e0cb3cbc/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e0cb3cbc-0897-4521-aee4-e19b9fc8a798"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.035.34"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7593eeea-5fd2-4847-80b3-b927487ea854"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/2fea5845-b2a2-4cd0-9b57-0c92bb9d7d1d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2fea5845-b2a2-4cd0-9b57-0c92bb9d7d1d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00067808"/> + </coding> + <text value="Remicade 100MG Pulver PIK 4ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PIK"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="fc570fcf-6b9b-44ba-9b39-6a822c3c7a88"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="8171969d-76e2-484d-8078-655d6a37d70b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/input.xml new file mode 100644 index 00000000..4f967c85 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/input.xml @@ -0,0 +1,369 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6f404894-137e-44e6-abe9-ea2ddc286317"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.036.31"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/7cdf08d0-5e54-4f6b-9e5c-36d0b55ca011"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7cdf08d0-5e54-4f6b-9e5c-36d0b55ca011"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/45116c65-4d9f-4190-a101-5f2c019fbae5"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/45116c65-4d9f-4190-a101-5f2c019fbae5"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="45116c65-4d9f-4190-a101-5f2c019fbae5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d5c1f731-49c2-4c43-b362-71dda955c0cb"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/d5c1f731-49c2-4c43-b362-71dda955c0cb"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d5c1f731-49c2-4c43-b362-71dda955c0cb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07765007"/> + </coding> + <text value="NEUPRO 8MG/24H PFT 7 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/output.json new file mode 100644 index 00000000..a4d22023 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "318de3dd-8398-46b7-bad9-68efabc0a81a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.036.31" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "41912da7-ab5b-4441-b5c0-3b63dff0c48c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1936ab41-358d-4028-ab02-3bc20888c75b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1936ab41-358d-4028-ab02-3bc20888c75b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "07765007" + } ], + "text": "NEUPRO 8MG/24H PFT 7 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PFT" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "eb4b02bb-732a-49ce-8705-5e784c07d605", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "5925f69e-a58b-4963-a789-234d8bb52bfe", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/output.xml new file mode 100644 index 00000000..30ee785a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_32_318de3dd/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="318de3dd-8398-46b7-bad9-68efabc0a81a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.036.31"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="41912da7-ab5b-4441-b5c0-3b63dff0c48c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1936ab41-358d-4028-ab02-3bc20888c75b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1936ab41-358d-4028-ab02-3bc20888c75b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07765007"/> + </coding> + <text value="NEUPRO 8MG/24H PFT 7 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="eb4b02bb-732a-49ce-8705-5e784c07d605"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="5925f69e-a58b-4963-a789-234d8bb52bfe"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/input.xml new file mode 100644 index 00000000..cd406b7c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/input.xml @@ -0,0 +1,369 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="1f339db0-9e55-4946-9dfa-f1b30953be9b"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.037.28"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/88c4029f-dfab-415a-b6de-64fd1a4058e6"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="88c4029f-dfab-415a-b6de-64fd1a4058e6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/43c2b7ae-ad11-4387-910a-e6b7a3c38d4f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/43c2b7ae-ad11-4387-910a-e6b7a3c38d4f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="43c2b7ae-ad11-4387-910a-e6b7a3c38d4f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5ff1bd22-ce14-484e-be56-d2ba4adeac31"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/5ff1bd22-ce14-484e-be56-d2ba4adeac31"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5ff1bd22-ce14-484e-be56-d2ba4adeac31"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07765007"/> + </coding> + <text value="NEUPRO 8MG/24H PFT 7 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/output.json new file mode 100644 index 00000000..fb8fa3db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "34200096-900b-4350-9520-ecce26ea72e5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.037.28" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "dae33821-45af-43e0-ab51-1b5c3841fa1b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/555c0449-9690-420e-a438-e20153b5f5dc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "555c0449-9690-420e-a438-e20153b5f5dc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "07765007" + } ], + "text": "NEUPRO 8MG/24H PFT 7 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PFT" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5ee1fd05-a4b8-4262-8a08-cc9bfdf413f0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "297e1bad-fca8-4a96-a2af-35ca5d9d275c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/output.xml new file mode 100644 index 00000000..0cc68fc8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_33_34200096/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="34200096-900b-4350-9520-ecce26ea72e5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.037.28"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="dae33821-45af-43e0-ab51-1b5c3841fa1b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/555c0449-9690-420e-a438-e20153b5f5dc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="555c0449-9690-420e-a438-e20153b5f5dc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07765007"/> + </coding> + <text value="NEUPRO 8MG/24H PFT 7 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5ee1fd05-a4b8-4262-8a08-cc9bfdf413f0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="297e1bad-fca8-4a96-a2af-35ca5d9d275c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/input.xml new file mode 100644 index 00000000..df647c81 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="d38c02fa-bbe3-444d-acfe-60698041bd1f"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.038.25"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/c62c5227-9d23-4a97-9180-f1c7d86e3939"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="c62c5227-9d23-4a97-9180-f1c7d86e3939"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/9284fb68-6f7b-4169-8567-70286e646eaf"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/9284fb68-6f7b-4169-8567-70286e646eaf"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9284fb68-6f7b-4169-8567-70286e646eaf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a627102f-2fb0-4eb6-87b9-f30c6900a23e"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a627102f-2fb0-4eb6-87b9-f30c6900a23e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a627102f-2fb0-4eb6-87b9-f30c6900a23e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01403987"/> + </coding> + <text value="ABILIFY 5MG TAB Beragena"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/output.json new file mode 100644 index 00000000..703725db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "7fd5f6de-df5f-431a-8ec3-6a788baa0a1f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.038.25" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6105fe88-af99-48bd-98e9-e519d690fe82", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f6fef33d-cb76-431a-bdc4-10c3ab35b915" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f6fef33d-cb76-431a-bdc4-10c3ab35b915", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01403987" + } ], + "text": "ABILIFY 5MG TAB Beragena" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a4bcf25a-7f78-4077-a640-8fda97e32d75", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "7d850be1-7cc4-454d-8fd5-97693e8a3788", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/output.xml new file mode 100644 index 00000000..306ab05d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_34_7fd5f6de/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="7fd5f6de-df5f-431a-8ec3-6a788baa0a1f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.038.25"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6105fe88-af99-48bd-98e9-e519d690fe82"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f6fef33d-cb76-431a-bdc4-10c3ab35b915"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f6fef33d-cb76-431a-bdc4-10c3ab35b915"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01403987"/> + </coding> + <text value="ABILIFY 5MG TAB Beragena"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a4bcf25a-7f78-4077-a640-8fda97e32d75"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7d850be1-7cc4-454d-8fd5-97693e8a3788"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/input.xml new file mode 100644 index 00000000..f55c3324 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="b942313c-50b2-4fd8-b328-4fefc927223e"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.039.22"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/95658e04-f03d-42a6-8295-809136787a13"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="95658e04-f03d-42a6-8295-809136787a13"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/497aea30-5d16-4bb7-abf5-cf22e031d1e4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/497aea30-5d16-4bb7-abf5-cf22e031d1e4"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="497aea30-5d16-4bb7-abf5-cf22e031d1e4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/05978c9d-93d9-4e9c-aa67-f0a2ff3f8a2a"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/05978c9d-93d9-4e9c-aa67-f0a2ff3f8a2a"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="05978c9d-93d9-4e9c-aa67-f0a2ff3f8a2a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09943571"/> + </coding> + <text value="Sprycel 100MG FTA 30 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/output.json new file mode 100644 index 00000000..52a586be --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "f54e7067-dbf9-45d1-9afa-45284e9d701d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.039.22" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "f9d69870-62de-4fbb-9697-f5e615e441f8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/6a286af5-f575-4d39-a51e-262fd0714627" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6a286af5-f575-4d39-a51e-262fd0714627", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09943571" + } ], + "text": "Sprycel 100MG FTA 30 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "bec4183d-20be-46f6-8cb2-f5a15c160dc8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b0bd4d85-f0bf-40d7-b5c2-51f3fc6e2231", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/output.xml new file mode 100644 index 00000000..6fcf6dce --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_35_f54e7067/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f54e7067-dbf9-45d1-9afa-45284e9d701d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.039.22"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f9d69870-62de-4fbb-9697-f5e615e441f8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6a286af5-f575-4d39-a51e-262fd0714627"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6a286af5-f575-4d39-a51e-262fd0714627"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09943571"/> + </coding> + <text value="Sprycel 100MG FTA 30 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="bec4183d-20be-46f6-8cb2-f5a15c160dc8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b0bd4d85-f0bf-40d7-b5c2-51f3fc6e2231"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/input.xml new file mode 100644 index 00000000..cdd3d80c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/input.xml @@ -0,0 +1,383 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c48d0fb5-9d3a-4872-9879-cdd61c39fc1d"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.040.19"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/ca3a6bdf-75dd-425e-9bf4-4de5daa11d3f"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ca3a6bdf-75dd-425e-9bf4-4de5daa11d3f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/9218cbd8-71f1-4800-9b52-370860b7079f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/9218cbd8-71f1-4800-9b52-370860b7079f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9218cbd8-71f1-4800-9b52-370860b7079f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/523bfe94-d8f0-42ac-b4d1-92910cad5be7"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/523bfe94-d8f0-42ac-b4d1-92910cad5be7"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="523bfe94-d8f0-42ac-b4d1-92910cad5be7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09943571"/> + </coding> + <text value="Sprycel 100MG FTA 30 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/output.json new file mode 100644 index 00000000..17442dd5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "143798dc-95cc-4de4-832e-08d519a0d142", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.040.19" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "26a6d4dd-66b6-47a6-a1fd-cbed43985938", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/510bdbe1-718a-462e-9599-17b795467ae4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "510bdbe1-718a-462e-9599-17b795467ae4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09943571" + } ], + "text": "Sprycel 100MG FTA 30 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3bdf8d36-f92a-4ed1-adfc-a0fc1323df56", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "96959066-caf4-4331-b2d9-3e70ba30eafe", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/output.xml new file mode 100644 index 00000000..13da6497 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_36_143798dc/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="143798dc-95cc-4de4-832e-08d519a0d142"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.040.19"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="26a6d4dd-66b6-47a6-a1fd-cbed43985938"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/510bdbe1-718a-462e-9599-17b795467ae4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="510bdbe1-718a-462e-9599-17b795467ae4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09943571"/> + </coding> + <text value="Sprycel 100MG FTA 30 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3bdf8d36-f92a-4ed1-adfc-a0fc1323df56"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="96959066-caf4-4331-b2d9-3e70ba30eafe"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/input.xml new file mode 100644 index 00000000..5957f2ed --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7d1f08b4-0224-4088-b144-841a75011d18"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.041.16"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/60537e65-11db-4ae1-9310-dc40116ab1f2"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="60537e65-11db-4ae1-9310-dc40116ab1f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c799df54-4e42-4b0a-8508-39982c722e2c"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c799df54-4e42-4b0a-8508-39982c722e2c"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c799df54-4e42-4b0a-8508-39982c722e2c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/2420612c-a1c8-4b08-be02-2ee831e0f82a"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/2420612c-a1c8-4b08-be02-2ee831e0f82a"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2420612c-a1c8-4b08-be02-2ee831e0f82a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02050605"/> + </coding> + <text value="Euthyrox 50 TAB 50 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/output.json new file mode 100644 index 00000000..0e436722 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "78ff5d32-d4d4-4401-8981-75aa78168576", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.041.16" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "5cecb3ce-16f8-4858-a002-820b830ea3b6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4e1cb1cb-9373-4d74-b5f3-35505c83be20" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4e1cb1cb-9373-4d74-b5f3-35505c83be20", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02050605" + } ], + "text": "Euthyrox 50 TAB 50 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "97e9f61a-c66f-44b3-b9d4-494f2c7a7c26", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a6d297aa-5a94-4ae2-84c5-a65524881be5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/output.xml new file mode 100644 index 00000000..bfc1a46a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_37_78ff5d32/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="78ff5d32-d4d4-4401-8981-75aa78168576"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.041.16"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5cecb3ce-16f8-4858-a002-820b830ea3b6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4e1cb1cb-9373-4d74-b5f3-35505c83be20"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4e1cb1cb-9373-4d74-b5f3-35505c83be20"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02050605"/> + </coding> + <text value="Euthyrox 50 TAB 50 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="97e9f61a-c66f-44b3-b9d4-494f2c7a7c26"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a6d297aa-5a94-4ae2-84c5-a65524881be5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/input.xml new file mode 100644 index 00000000..eb387b39 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="60e48db8-1164-4535-8600-ba83785ac58a"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.042.13"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/5597e0b6-86f9-460f-bdd2-469322a13f1d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="5597e0b6-86f9-460f-bdd2-469322a13f1d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/3e10ae87-8c81-4f69-ad74-cd15e50b0a69"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/3e10ae87-8c81-4f69-ad74-cd15e50b0a69"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3e10ae87-8c81-4f69-ad74-cd15e50b0a69"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bdb52b32-96ef-4616-8368-c60148b090b1"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/bdb52b32-96ef-4616-8368-c60148b090b1"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="2420612c-a1c8-4b08-be02-2ee831e0f82a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="17513301"/> + </coding> + <text value="Priorix docpharm"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PLI"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/output.json new file mode 100644 index 00000000..03139bd5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "fb26a25e-4efe-4176-95c7-878e15b052fa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.042.13" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "904be641-8bd5-477d-8026-32fe24f1979e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/24e5896e-7b1b-4dd1-a6d4-bc0df3c7bf30" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "24e5896e-7b1b-4dd1-a6d4-bc0df3c7bf30", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "17513301" + } ], + "text": "Priorix docpharm" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PLI" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "1187574b-44e5-41b2-b4d5-301dfa7a50c9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4d72eaa4-0288-471d-85c2-bc11a46352ac", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/output.xml new file mode 100644 index 00000000..488a4b65 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_38_fb26a25e/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fb26a25e-4efe-4176-95c7-878e15b052fa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.042.13"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="904be641-8bd5-477d-8026-32fe24f1979e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/24e5896e-7b1b-4dd1-a6d4-bc0df3c7bf30"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="24e5896e-7b1b-4dd1-a6d4-bc0df3c7bf30"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="17513301"/> + </coding> + <text value="Priorix docpharm"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PLI"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1187574b-44e5-41b2-b4d5-301dfa7a50c9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4d72eaa4-0288-471d-85c2-bc11a46352ac"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/input.xml new file mode 100644 index 00000000..038a96ab --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="acf39375-3a2b-4017-995d-531705fc129d"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.043.10"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/7a4dc8bb-78ab-4b90-8bae-410fb816de8d"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7a4dc8bb-78ab-4b90-8bae-410fb816de8d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/521786fd-c598-4b3f-95d1-51ac9540e836"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/521786fd-c598-4b3f-95d1-51ac9540e836"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="521786fd-c598-4b3f-95d1-51ac9540e836"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a23cea34-1141-42f3-903c-69740cc94a07"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a23cea34-1141-42f3-903c-69740cc94a07"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a23cea34-1141-42f3-903c-69740cc94a07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11219196"/> + </coding> + <text value="Abasaglar 100 E/ML KWIKPEN PEN 10x3ml"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/output.json new file mode 100644 index 00000000..14e84b07 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "23d155d0-3bd3-455b-bf4b-d5791c3113cc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.043.10" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8beeafd6-e28b-4aa8-aec2-19aeba7817c8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/5a37d50c-c4ef-4ea4-99cf-0e991ba221c7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "5a37d50c-c4ef-4ea4-99cf-0e991ba221c7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "11219196" + } ], + "text": "Abasaglar 100 E/ML KWIKPEN PEN 10x3ml" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9544b4b4-324a-4ffb-a174-80b40cc55d75", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "fbda0a3b-7c13-42db-a00c-dbe7f4db3998", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/output.xml new file mode 100644 index 00000000..2b3324ea --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_39_23d155d0/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="23d155d0-3bd3-455b-bf4b-d5791c3113cc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.043.10"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8beeafd6-e28b-4aa8-aec2-19aeba7817c8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5a37d50c-c4ef-4ea4-99cf-0e991ba221c7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5a37d50c-c4ef-4ea4-99cf-0e991ba221c7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11219196"/> + </coding> + <text value="Abasaglar 100 E/ML KWIKPEN PEN 10x3ml"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9544b4b4-324a-4ffb-a174-80b40cc55d75"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="fbda0a3b-7c13-42db-a00c-dbe7f4db3998"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/input.xml new file mode 100644 index 00000000..99796153 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/input.xml @@ -0,0 +1,406 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="328ad940-3fff-11ed-b878-0242ac120002"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.22"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03879429"/> + </coding> + <text value="Beloc-Zok® mite 47,5 mg, 30 Retardtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="30"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="P123464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Privati"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Privati"/> + </extension> + </family> + <given value="Paula"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-748382202"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-749999999"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="123456789"/> + </identifier> + <display value="Allianz Private Krankenversicherung"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/output.json new file mode 100644 index 00000000..9e568eb9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/output.json @@ -0,0 +1,220 @@ +{ + "resourceType": "Parameters", + "id": "1f6ef093-d07a-42d1-8896-067e05864b52", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.22" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "74cbf0c7-bcf2-4865-a266-12d19fbf5bd6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b1f3fdc9-c8fd-4b1e-a56e-50d29e718343" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b1f3fdc9-c8fd-4b1e-a56e-50d29e718343", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03879429" + } ], + "text": "Beloc-Zok® mite 47,5 mg, 30 Retardtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "RET" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "30" + } ], + "unit": "Stück", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "900d98c5-1879-4e02-afb2-380a56f51705", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "999999900" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-749999999" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "7f8a16d2-0374-401b-9147-20622e07d4a3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "999999900" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-748382202" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/output.xml new file mode 100644 index 00000000..2b905c3a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_3_PKV_1f6ef093/output.xml @@ -0,0 +1,224 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1f6ef093-d07a-42d1-8896-067e05864b52"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.22"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="74cbf0c7-bcf2-4865-a266-12d19fbf5bd6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b1f3fdc9-c8fd-4b1e-a56e-50d29e718343"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b1f3fdc9-c8fd-4b1e-a56e-50d29e718343"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03879429"/> + </coding> + <text value="Beloc-Zok® mite 47,5 mg, 30 Retardtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="30"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="900d98c5-1879-4e02-afb2-380a56f51705"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-749999999"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7f8a16d2-0374-401b-9147-20622e07d4a3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-748382202"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/input.xml new file mode 100644 index 00000000..80acb153 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="50926152-1499-4084-b784-b696d468946b"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.044.07"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/1d912f7c-a525-481b-81ec-58aec41f1ea8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1d912f7c-a525-481b-81ec-58aec41f1ea8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c1f6cd7f-67ed-48eb-b221-bbafd05187cd"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c1f6cd7f-67ed-48eb-b221-bbafd05187cd"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c1f6cd7f-67ed-48eb-b221-bbafd05187cd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ea3e3f70-119f-4b81-800f-3a189dd4ce4c"/> + </medicationReference> + <subject> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/ea3e3f70-119f-4b81-800f-3a189dd4ce4c"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ea3e3f70-119f-4b81-800f-3a189dd4ce4c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09338114"/> + </coding> + <text value="Neupro 4MG/24H PFT 7ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="E111111113"/> + </identifier> + <name> + <use value="official"/> + <family value="Christrose"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Christrose"/> + </extension> + </family> + <given value="Christa"/> + </name> + <birthDate value="1933-03-13"/> + <address> + <type value="both"/> + <line value="Nagelsweg 27"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Nagelsweg"/> + </extension> + </line> + <city value="Hamburg"/> + <postalCode value="20097"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="02"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101560000"/> + </identifier> + <display value="DAK-GESUNDHEIT"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/output.json new file mode 100644 index 00000000..96535a15 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "ec1c5acd-e0ce-4bef-86ba-c8636816b624", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.044.07" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a97dbe27-6b8e-48e4-9f0d-52fe66ee1f3b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1747ab25-1e9a-4923-98eb-0753a0655421" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1747ab25-1e9a-4923-98eb-0753a0655421", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "09338114" + } ], + "text": "Neupro 4MG/24H PFT 7ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PFT" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "1a964e97-e298-41da-aa92-75ec3a2423b1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f23e13a3-999b-4352-a578-988801994599", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/output.xml new file mode 100644 index 00000000..9715ea46 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_40_ec1c5acd/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ec1c5acd-e0ce-4bef-86ba-c8636816b624"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.044.07"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a97dbe27-6b8e-48e4-9f0d-52fe66ee1f3b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1747ab25-1e9a-4923-98eb-0753a0655421"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1747ab25-1e9a-4923-98eb-0753a0655421"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="09338114"/> + </coding> + <text value="Neupro 4MG/24H PFT 7ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1a964e97-e298-41da-aa92-75ec3a2423b1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f23e13a3-999b-4352-a578-988801994599"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/input.xml new file mode 100644 index 00000000..e5a3faac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="e9de4852-9336-4fad-9378-3c904b54ced8"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.045.04"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/e8ae9644-4ebd-4b02-8c0b-c2736c26f4fa"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="e8ae9644-4ebd-4b02-8c0b-c2736c26f4fa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/92340404-2726-4170-a5e4-e5389aa3f68b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/92340404-2726-4170-a5e4-e5389aa3f68b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="92340404-2726-4170-a5e4-e5389aa3f68b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/abe4ad76-02c3-4da2-a1ff-56b038cb85b5"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/abe4ad76-02c3-4da2-a1ff-56b038cb85b5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="abe4ad76-02c3-4da2-a1ff-56b038cb85b5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07699339"/> + </coding> + <text value="Sortis 10MG FTA 50ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/output.json new file mode 100644 index 00000000..6f37f722 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "2a94fb4b-9f76-406d-baba-ca1aa9a8fc21", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.045.04" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3d6aa859-fff0-45ab-a18b-9c6ff2951eeb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/dd87a7cf-3b08-42b4-a222-0d44d66f21e9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "dd87a7cf-3b08-42b4-a222-0d44d66f21e9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "07699339" + } ], + "text": "Sortis 10MG FTA 50ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "1aff98cb-c0e3-4192-a546-0fd4c520d8fb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "feef8a9f-f7d2-4fbf-b0e0-5d9ec8e7e2b5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/output.xml new file mode 100644 index 00000000..4afdc2b5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_41_2a94fb4b/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2a94fb4b-9f76-406d-baba-ca1aa9a8fc21"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.045.04"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3d6aa859-fff0-45ab-a18b-9c6ff2951eeb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/dd87a7cf-3b08-42b4-a222-0d44d66f21e9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="dd87a7cf-3b08-42b4-a222-0d44d66f21e9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="07699339"/> + </coding> + <text value="Sortis 10MG FTA 50ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="1aff98cb-c0e3-4192-a546-0fd4c520d8fb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="feef8a9f-f7d2-4fbf-b0e0-5d9ec8e7e2b5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/input.xml new file mode 100644 index 00000000..6dff2d2a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="fe9200db-d503-4a1b-bd13-96ab375f9bab"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.046.98"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/7a69f68c-b120-40b9-8ed7-aab2c84a3a1c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="7a69f68c-b120-40b9-8ed7-aab2c84a3a1c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/91921af0-93cc-4cae-a51c-c8bb779fcd09"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/91921af0-93cc-4cae-a51c-c8bb779fcd09"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="91921af0-93cc-4cae-a51c-c8bb779fcd09"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d0da19d0-00a9-411a-bfe3-e75607c1f0b2"/> + </medicationReference> + <subject> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/d0da19d0-00a9-411a-bfe3-e75607c1f0b2"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d0da19d0-00a9-411a-bfe3-e75607c1f0b2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11164213"/> + </coding> + <text value="Neupro 4MG/24H PFT 7ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="E111111113"/> + </identifier> + <name> + <use value="official"/> + <family value="Christrose"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Christrose"/> + </extension> + </family> + <given value="Christa"/> + </name> + <birthDate value="1933-03-13"/> + <address> + <type value="both"/> + <line value="Nagelsweg 27"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="27"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Nagelsweg"/> + </extension> + </line> + <city value="Hamburg"/> + <postalCode value="20097"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="2ad99325-406a-42b1-8126-a96b5fa7b0c5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="02"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/d7723237-c01f-4e35-8482-1272d0b3fcf5"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101560000"/> + </identifier> + <display value="DAK-GESUNDHEIT"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/output.json new file mode 100644 index 00000000..470d821a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "f5df70a6-9252-4f7c-bfe3-9d110d57582f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.046.98" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a2b1b314-8284-4d28-a2d8-769066b638c0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1cc97dac-a126-4ebb-b98f-05916ca88647" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1cc97dac-a126-4ebb-b98f-05916ca88647", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "11164213" + } ], + "text": "Neupro 4MG/24H PFT 7ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PFT" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3c19abca-4b67-4bd2-9fdd-060279f80dce", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "747f222c-326e-41be-8d80-dec070336411", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/output.xml new file mode 100644 index 00000000..dd949388 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_42_f5df70a6/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f5df70a6-9252-4f7c-bfe3-9d110d57582f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.046.98"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a2b1b314-8284-4d28-a2d8-769066b638c0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1cc97dac-a126-4ebb-b98f-05916ca88647"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1cc97dac-a126-4ebb-b98f-05916ca88647"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="11164213"/> + </coding> + <text value="Neupro 4MG/24H PFT 7ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PFT"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3c19abca-4b67-4bd2-9fdd-060279f80dce"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="747f222c-326e-41be-8d80-dec070336411"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/input.xml new file mode 100644 index 00000000..82c44910 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/input.xml @@ -0,0 +1,383 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="91c262e7-390e-4136-8243-7a68a4418d34"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.047.95"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/123b2135-fc42-4e62-8467-41ef9153a2ae"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="123b2135-fc42-4e62-8467-41ef9153a2ae"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/952f25b4-a28e-4f06-ae76-a99cf1cbd457"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/952f25b4-a28e-4f06-ae76-a99cf1cbd457"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="952f25b4-a28e-4f06-ae76-a99cf1cbd457"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b6869241-3d4b-4472-9933-1fee15a426f7"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/b6869241-3d4b-4472-9933-1fee15a426f7"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b6869241-3d4b-4472-9933-1fee15a426f7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08454982"/> + </coding> + <text value="Pramipexol Hexal 1,05 MG RET 30ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumberg-von-und-zu-Schaumburg-und-Radeberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg-von-und-zu-Schaumburg-und-Radeberg"/> + </extension> + </family> + <given value="Friedrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus BKK"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/output.json new file mode 100644 index 00000000..531c9a47 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "22d245d1-2e63-4a7e-ae6e-36d397c15840", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.047.95" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b467c88d-fe5f-4b77-88ba-a4aa545a3047", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/da900f01-8960-4c1a-80ca-7fa4c2a5b49f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "da900f01-8960-4c1a-80ca-7fa4c2a5b49f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08454982" + } ], + "text": "Pramipexol Hexal 1,05 MG RET 30ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "RET" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f9a2e75e-b063-4fe7-bfe3-1bbf3650228b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "067d00f1-f8b7-4679-9a6f-672f3e477d21", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/output.xml new file mode 100644 index 00000000..3bd6d586 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_43_22d245d1/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="22d245d1-2e63-4a7e-ae6e-36d397c15840"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.047.95"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b467c88d-fe5f-4b77-88ba-a4aa545a3047"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/da900f01-8960-4c1a-80ca-7fa4c2a5b49f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="da900f01-8960-4c1a-80ca-7fa4c2a5b49f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08454982"/> + </coding> + <text value="Pramipexol Hexal 1,05 MG RET 30ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f9a2e75e-b063-4fe7-bfe3-1bbf3650228b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="067d00f1-f8b7-4679-9a6f-672f3e477d21"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/input.xml new file mode 100644 index 00000000..26c5983b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5702a4b8-39a3-4183-9c38-99b749881781"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.048.92"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/21b527aa-97af-40f9-a88a-d6cf4f7e7e55"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="21b527aa-97af-40f9-a88a-d6cf4f7e7e55"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0fbc885f-d376-4491-b86f-a04157394147"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0fbc885f-d376-4491-b86f-a04157394147"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0fbc885f-d376-4491-b86f-a04157394147"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cfadcd43-c146-4ec7-8bf8-04c09d1f5345"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cfadcd43-c146-4ec7-8bf8-04c09d1f5345"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cfadcd43-c146-4ec7-8bf8-04c09d1f5345"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00659288"/> + </coding> + <text value="L Thyrox JOD Hexal 100/100 TAB 50 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/output.json new file mode 100644 index 00000000..c4f54b48 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "bb4ce485-667c-4f6a-bab2-fa2599eaa08b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.048.92" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6375ab4e-dbd6-415d-9987-f5d464e05fb8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c91487ad-9ef3-4d3d-8207-a762d5eb0bc1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c91487ad-9ef3-4d3d-8207-a762d5eb0bc1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00659288" + } ], + "text": "L Thyrox JOD Hexal 100/100 TAB 50 ST" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "10101d0f-3614-408f-9b10-b9bdc5f0f574", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "01d8ed1a-f6bd-447f-946f-06c69924d5a0", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/output.xml new file mode 100644 index 00000000..eb595cdb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_45_bb4ce485/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bb4ce485-667c-4f6a-bab2-fa2599eaa08b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.048.92"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6375ab4e-dbd6-415d-9987-f5d464e05fb8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c91487ad-9ef3-4d3d-8207-a762d5eb0bc1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c91487ad-9ef3-4d3d-8207-a762d5eb0bc1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00659288"/> + </coding> + <text value="L Thyrox JOD Hexal 100/100 TAB 50 ST"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="10101d0f-3614-408f-9b10-b9bdc5f0f574"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="01d8ed1a-f6bd-447f-946f-06c69924d5a0"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/input.xml new file mode 100644 index 00000000..27ed0009 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/input.xml @@ -0,0 +1,369 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="baac1cdd-1313-468f-9c9e-bde74acb308e"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.049.89"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/cb8f6636-f445-4263-b285-27cb5a2ac646"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="cb8f6636-f445-4263-b285-27cb5a2ac646"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/ab35643a-1809-48b0-9bfa-3d7b650631c2"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/ab35643a-1809-48b0-9bfa-3d7b650631c2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ab35643a-1809-48b0-9bfa-3d7b650631c2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1a3c5152-ec87-41b9-82e7-52c40eef7ec3"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/1a3c5152-ec87-41b9-82e7-52c40eef7ec3"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1a3c5152-ec87-41b9-82e7-52c40eef7ec3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02850079"/> + </coding> + <text value="Arcoxia 90 mg 50 FTA"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/output.json new file mode 100644 index 00000000..e06b790a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "68570de1-a052-476e-aea5-abb81a6a571c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.049.89" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0da8459d-551d-4db6-b1a0-6c0d53d35d70", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/e38bb6fb-af31-49a1-97f9-79f19b269ccf" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e38bb6fb-af31-49a1-97f9-79f19b269ccf", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02850079" + } ], + "text": "Arcoxia 90 mg 50 FTA" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "712ff189-7f57-40de-9aae-8ffb1ede0f59", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f12785c1-874e-4769-b3c7-274d1c5ad272", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/output.xml new file mode 100644 index 00000000..d2af0dee --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_49_68570de1/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="68570de1-a052-476e-aea5-abb81a6a571c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.049.89"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0da8459d-551d-4db6-b1a0-6c0d53d35d70"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e38bb6fb-af31-49a1-97f9-79f19b269ccf"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e38bb6fb-af31-49a1-97f9-79f19b269ccf"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02850079"/> + </coding> + <text value="Arcoxia 90 mg 50 FTA"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="712ff189-7f57-40de-9aae-8ffb1ede0f59"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f12785c1-874e-4769-b3c7-274d1c5ad272"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/input.xml new file mode 100644 index 00000000..13d36b8d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/input.xml @@ -0,0 +1,425 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5f66314e-459a-41e9-a3d7-65c935a8be2c"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2021-04-01"/> + </extension> + <extension url="Unfallbetrieb"> + <valueString value="Arbeitsplatz"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </insurance> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Payor_Type_KBV"/> + <code value="UK"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="120591802"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="Unfallkasse NRW"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/output.json new file mode 100644 index 00000000..a89d7f52 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/output.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Parameters", + "id": "ee308df9-d41d-49b2-baec-1ef9cd80cd22", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.008.18" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "286db490-247e-4b02-b7c4-f607741f533d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/e46fd88b-1de0-4b48-9544-d190115cfac1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Verwendung ohne Anlegen eines Verbandes" + } ], + "dosageInstruction": [ { + "text": "3mal täglich dünn auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e46fd88b-1de0-4b48-9544-d190115cfac1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02090906" + } ], + "text": "Fucidine® 20mg/g Creme 15g N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "CRE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "15" + } ], + "unit": "g", + "system": "http://unitsofmeasure.org", + "code": "g" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5acf902f-842b-4031-be3a-835162d9bfce", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "42420e42-4007-4e6f-ae10-1b769e158fe9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/output.xml new file mode 100644 index 00000000..b5811fee --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_4_ee308df9/output.xml @@ -0,0 +1,223 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ee308df9-d41d-49b2-baec-1ef9cd80cd22"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="286db490-247e-4b02-b7c4-f607741f533d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e46fd88b-1de0-4b48-9544-d190115cfac1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e46fd88b-1de0-4b48-9544-d190115cfac1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5acf902f-842b-4031-be3a-835162d9bfce"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="42420e42-4007-4e6f-ae10-1b769e158fe9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/input.xml new file mode 100644 index 00000000..03beca32 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="d390d0d3-f3ac-486b-8ecf-99d281e6682c"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.054.74"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8485fdc9-213f-4450-9e49-d5ff7040c688"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8485fdc9-213f-4450-9e49-d5ff7040c688"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/5dfce447-d18f-4b83-8ce9-af5824327594"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/5dfce447-d18f-4b83-8ce9-af5824327594"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5dfce447-d18f-4b83-8ce9-af5824327594"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ffb8fc02-cf91-4ee5-8e7b-52252b769f90"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/ffb8fc02-cf91-4ee5-8e7b-52252b769f90"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ffb8fc02-cf91-4ee5-8e7b-52252b769f90"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01358117"/> + </coding> + <text value="TD- Impfstoff"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="ISU"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/output.json new file mode 100644 index 00000000..096b9f91 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "dff1953b-9846-4e6f-ae68-4cb682411ed9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.054.74" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "817cddfe-42c6-412e-8df7-969d9588b744", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/14803305-f40a-4f62-8a77-443e26088795" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "14803305-f40a-4f62-8a77-443e26088795", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01358117" + } ], + "text": "TD- Impfstoff" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "ISU" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "344f0122-3195-4120-a0ee-00de1101763d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "482ade72-1e59-433f-b035-0dadf4b97333", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/output.xml new file mode 100644 index 00000000..62256e7b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_54_dff1953b/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dff1953b-9846-4e6f-ae68-4cb682411ed9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.054.74"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="817cddfe-42c6-412e-8df7-969d9588b744"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/14803305-f40a-4f62-8a77-443e26088795"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="14803305-f40a-4f62-8a77-443e26088795"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01358117"/> + </coding> + <text value="TD- Impfstoff"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="ISU"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="344f0122-3195-4120-a0ee-00de1101763d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="482ade72-1e59-433f-b035-0dadf4b97333"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/input.xml new file mode 100644 index 00000000..7caf8cd2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="a6949071-45a9-436c-9370-839de9fcf84d"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.055.71"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/90e08dd9-9395-42ca-9511-55a40ce1dc9c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="90e08dd9-9395-42ca-9511-55a40ce1dc9c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/2db909dc-6f84-4bf6-a0a3-5730d89f33a1"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/2db909dc-6f84-4bf6-a0a3-5730d89f33a1"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2db909dc-6f84-4bf6-a0a3-5730d89f33a1"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a68b69ec-b11a-4777-b973-8eff372ba61e"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a68b69ec-b11a-4777-b973-8eff372ba61e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a68b69ec-b11a-4777-b973-8eff372ba61e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02223997"/> + </coding> + <text value="Ramipril 10mg TAB Ratiopharm 50ST TAB"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <name> + <use value="official"/> + <family value="Meyer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Meyer"/> + </extension> + </family> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin der Onkologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/output.json new file mode 100644 index 00000000..08fbc25f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/output.json @@ -0,0 +1,200 @@ +{ + "resourceType": "Parameters", + "id": "10ddea96-5aaa-458d-b0c4-2d91416d9d35", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.055.71" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "caa97c80-91d3-4b8d-be91-a53e1822fd91", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7c3a3f9a-3945-49b9-a8da-29582ceda073" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7c3a3f9a-3945-49b9-a8da-29582ceda073", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02223997" + } ], + "text": "Ramipril 10mg TAB Ratiopharm 50ST TAB" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0059e2dc-9cf5-4f23-a0be-68642abf5db6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "757299999" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Krankenhaus", + "telecom": [ { + "system": "phone", + "value": "0309876543" + }, { + "system": "email", + "value": "krankenhaus@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Wegelystraße 3" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "3" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Wegelystraße" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "cc895850-9b54-4331-9159-bf527fc98478", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "159753527" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Mia Meyer", + "family": "Meyer", + "given": [ "Mia" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/output.xml new file mode 100644 index 00000000..1844bed5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_55_10ddea96/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="10ddea96-5aaa-458d-b0c4-2d91416d9d35"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.055.71"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="caa97c80-91d3-4b8d-be91-a53e1822fd91"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7c3a3f9a-3945-49b9-a8da-29582ceda073"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7c3a3f9a-3945-49b9-a8da-29582ceda073"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02223997"/> + </coding> + <text value="Ramipril 10mg TAB Ratiopharm 50ST TAB"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0059e2dc-9cf5-4f23-a0be-68642abf5db6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cc895850-9b54-4331-9159-bf527fc98478"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Mia Meyer"/> + <family value="Meyer"/> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/input.xml new file mode 100644 index 00000000..ea2a4293 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/input.xml @@ -0,0 +1,372 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="414ca393-dde3-4082-9a3b-3752e629e4aa"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.056.68"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/1e33b2b8-770b-4dc2-8d73-74c1989540c4"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1e33b2b8-770b-4dc2-8d73-74c1989540c4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/c40ede18-da4b-11eb-8d19-0242ac130003"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/c40ede18-da4b-11eb-8d19-0242ac130003"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c40ede18-da4b-11eb-8d19-0242ac130003"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/125115cc-da48-11eb-8d19-0242ac130003"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/125115cc-da48-11eb-8d19-0242ac130003"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="125115cc-da48-11eb-8d19-0242ac130003"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10203603"/> + </coding> + <text value="ASPIRIN 500MG UEBERZ TABL, 20 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="UTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="SEL"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württemberg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/output.json new file mode 100644 index 00000000..8b29ed20 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "bc08cd5c-19e5-41dd-809d-e8757c03fd30", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.056.68" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9b2fee5b-4c9f-4c38-957f-764386861c43", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/d744e44e-8237-44a4-a886-3dbc1057b3b6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d744e44e-8237-44a4-a886-3dbc1057b3b6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N2" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10203603" + } ], + "text": "ASPIRIN 500MG UEBERZ TABL, 20 St" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "UTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d8ab807f-5014-4b24-81c5-823035dbcd96", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "842ff6e2-a20e-4512-a82a-7bbf801f4e71", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/output.xml new file mode 100644 index 00000000..43d0c9e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_56_bc08cd5c/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bc08cd5c-19e5-41dd-809d-e8757c03fd30"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.056.68"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9b2fee5b-4c9f-4c38-957f-764386861c43"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d744e44e-8237-44a4-a886-3dbc1057b3b6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d744e44e-8237-44a4-a886-3dbc1057b3b6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N2"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10203603"/> + </coding> + <text value="ASPIRIN 500MG UEBERZ TABL, 20 St"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="UTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d8ab807f-5014-4b24-81c5-823035dbcd96"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="842ff6e2-a20e-4512-a82a-7bbf801f4e71"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/input.xml new file mode 100644 index 00000000..00c76fac --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/input.xml @@ -0,0 +1,377 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="3a1c45f8-d959-43f0-8ac4-9959be746188"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.057.65"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/194c4345-6737-4e47-bb26-d13263bd5506"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="194c4345-6737-4e47-bb26-d13263bd5506"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/cde53d42-da4b-11eb-8d19-0242ac130003"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/cde53d42-da4b-11eb-8d19-0242ac130003"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="cde53d42-da4b-11eb-8d19-0242ac130003"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0be1bf02-da48-11eb-8d19-0242ac130003"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/0be1bf02-da48-11eb-8d19-0242ac130003"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0be1bf02-da48-11eb-8d19-0242ac130003"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="15193430"/> + </coding> + <text value="CERAZETTE 75 Mikrogramm Filmtabletten (6X28St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="SEL"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/output.json new file mode 100644 index 00000000..1c64a6a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "855147c1-3679-43e0-83c1-6e901418902f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.057.65" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8b9d311c-b722-4cda-861b-edca6026a4ee", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f39eab34-819b-43f9-93f5-7e8ad5c146f7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f39eab34-819b-43f9-93f5-7e8ad5c146f7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "15193430" + } ], + "text": "CERAZETTE 75 Mikrogramm Filmtabletten (6X28St)" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b22e5736-bf35-4f1d-9578-6972675f808a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "9875b5b4-e93e-497e-8679-9ee74568c071", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/output.xml new file mode 100644 index 00000000..13f91554 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_57_855147c1/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="855147c1-3679-43e0-83c1-6e901418902f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.057.65"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8b9d311c-b722-4cda-861b-edca6026a4ee"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f39eab34-819b-43f9-93f5-7e8ad5c146f7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f39eab34-819b-43f9-93f5-7e8ad5c146f7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="15193430"/> + </coding> + <text value="CERAZETTE 75 Mikrogramm Filmtabletten (6X28St)"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b22e5736-bf35-4f1d-9578-6972675f808a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9875b5b4-e93e-497e-8679-9ee74568c071"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/input.xml new file mode 100644 index 00000000..712a2c42 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/input.xml @@ -0,0 +1,475 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="2f97abb5-5b34-48c3-b380-8cb0d1b71796"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="01"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <attester> + <mode value="legal"/> + <party> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </party> + </attester> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="FOR_PractitionerRole"/> + </coding> + </code> + <entry> + <!-- Referenz auf ASV-Teamnummer --> + <reference value="PractitionerRole/cfa278d2-0b57-4889-a6a9-d3ff59983107"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="877e9689-523e-46ca-aa78-8de34a023583"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/PractitionerRole/cfa278d2-0b57-4889-a6a9-d3ff59983107"/> + <resource> + <PractitionerRole xmlns="http://hl7.org/fhir"> + <id value="cfa278d2-0b57-4889-a6a9-d3ff59983107"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_PractitionerRole|1.1.0"/> + </meta> + <practitioner> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + </practitioner> + <organization> + <identifier> + <system value="http://fhir.de/NamingSystem/asv/teamnummer"/> + <value value="001234567"/> + </identifier> + </organization> + </PractitionerRole> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <name> + <use value="official"/> + <family value="Fischer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Fischer"/> + </extension> + </family> + <given value="Alexander"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="04"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin"/> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Fachgruppennummer_ASV"/> + <code value="555555472"/> + </coding> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/output.json new file mode 100644 index 00000000..b5527d49 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/output.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Parameters", + "id": "bc27f419-6043-4c14-ac44-eff3cfe24a03", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.004.30" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9a05b1f4-db5b-4679-9771-d692d77e1850", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/9150f626-39d2-4d52-9b98-77066f9a1b5e" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Bitte auf Anwendung schulen" + } ], + "dispenseRequest": { + "quantity": { + "value": 2, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9150f626-39d2-4d52-9b98-77066f9a1b5e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00427833" + } ], + "text": "Viani 50µg/250µg 1 Diskus 60 ED N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Diskus" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "704be6f5-9c44-4931-8ab7-462d127ffe3d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "75f79c09-9022-483a-8f4d-431e974a579d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/output.xml new file mode 100644 index 00000000..1e1f2f1a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_60_bc27f419/output.xml @@ -0,0 +1,222 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bc27f419-6043-4c14-ac44-eff3cfe24a03"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9a05b1f4-db5b-4679-9771-d692d77e1850"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9150f626-39d2-4d52-9b98-77066f9a1b5e"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9150f626-39d2-4d52-9b98-77066f9a1b5e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="704be6f5-9c44-4931-8ab7-462d127ffe3d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="75f79c09-9022-483a-8f4d-431e974a579d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/input.xml new file mode 100644 index 00000000..319bffdb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/input.xml @@ -0,0 +1,445 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9ad99a8f-6bce-4ab8-ada1-bb3063566c25"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <attester> + <mode value="legal"/> + <party> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </party> + </attester> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="877e9689-523e-46ca-aa78-8de34a023583"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="895268385"/> + </identifier> + <name> + <use value="official"/> + <family value="Fischer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Fischer"/> + </extension> + </family> + <given value="Alexander"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="03"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Weiterbildungsassistent"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/output.json new file mode 100644 index 00000000..13512f1f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/output.json @@ -0,0 +1,211 @@ +{ + "resourceType": "Parameters", + "id": "5287e4ed-ba56-4248-9cc7-cacad267944a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.004.30" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "012e88be-fea0-49c2-9671-363637dbee6f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/dbb58b29-28f8-45d5-9554-d864cd86a4f3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Bitte auf Anwendung schulen" + } ], + "dispenseRequest": { + "quantity": { + "value": 2, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "dbb58b29-28f8-45d5-9554-d864cd86a4f3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00427833" + } ], + "text": "Viani 50µg/250µg 1 Diskus 60 ED N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Diskus" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "35adb011-8c98-4df8-a7fc-4ad2ba511e68", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "7f4498ca-c2f2-4b1c-8398-b2877264301e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "895268385" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Alexander Fischer", + "family": "Fischer", + "given": [ "Alexander" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/output.xml new file mode 100644 index 00000000..bf8b50c1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_6_5287e4ed/output.xml @@ -0,0 +1,217 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="5287e4ed-ba56-4248-9cc7-cacad267944a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="012e88be-fea0-49c2-9671-363637dbee6f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/dbb58b29-28f8-45d5-9554-d864cd86a4f3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="dbb58b29-28f8-45d5-9554-d864cd86a4f3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="35adb011-8c98-4df8-a7fc-4ad2ba511e68"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="7f4498ca-c2f2-4b1c-8398-b2877264301e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="895268385"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Alexander Fischer"/> + <family value="Fischer"/> + <given value="Alexander"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/input.xml new file mode 100644 index 00000000..7712cba0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/input.xml @@ -0,0 +1,368 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="aea2f4c5-675a-4d76-ab9b-7994c80b64ec"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6aba4ca1-6bc9-47db-a58d-946b5ded26b7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6aba4ca1-6bc9-47db-a58d-946b5ded26b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/7d871b93-e18c-4865-bad0-6b55196be46b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/7d871b93-e18c-4865-bad0-6b55196be46b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7d871b93-e18c-4865-bad0-6b55196be46b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="true"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392039"/> + </coding> + <text value="Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Baden-Württember/BVG"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/output.json new file mode 100644 index 00000000..27b0fd93 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "c806b0e8-28bd-4748-b6be-f236f73e944a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.001.39" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a5bed125-c21e-44d2-9f2a-08f3e2a5fb7b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4f62f150-10e2-4864-bbf3-59d8c79970ac" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4f62f150-10e2-4864-bbf3-59d8c79970ac", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "05392039" + } ], + "text": "Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "78881547-435f-4849-874d-d400a0a28bdb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d59d8057-677a-4ad7-a03a-21b9463f13f7", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/output.xml new file mode 100644 index 00000000..475f923f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_7_c806b0e8/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c806b0e8-28bd-4748-b6be-f236f73e944a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a5bed125-c21e-44d2-9f2a-08f3e2a5fb7b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4f62f150-10e2-4864-bbf3-59d8c79970ac"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4f62f150-10e2-4864-bbf3-59d8c79970ac"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392039"/> + </coding> + <text value="Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="78881547-435f-4849-874d-d400a0a28bdb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d59d8057-677a-4ad7-a03a-21b9463f13f7"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/input.xml new file mode 100644 index 00000000..8874a825 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/input.xml @@ -0,0 +1,393 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="0428d416-149e-48a4-977c-394887b3d85c"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/a054c2f3-0123-4d33-a0b3-bedec2f7d1ea"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a054c2f3-0123-4d33-a0b3-bedec2f7d1ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f568397d-7ba2-46ac-904b-02caec933b42"/> + </medicationReference> + <subject> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + </requester> + <insurance> + <reference value="Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/f568397d-7ba2-46ac-904b-02caec933b42"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f568397d-7ba2-46ac-904b-02caec933b42"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + <name> + <use value="official"/> + <family value="Erbprinzessin von und zu der Schimmelpfennig-Hammerschmidt Federmannssohn"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Erbprinzessin"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schimmelpfennig-Hammerschmidt Federmannssohn"/> + </extension> + </family> + <given value="Ingrid"/> + </name> + <birthDate value="2010-01-31"/> + <address> + <type value="both"/> + <line value="Anneliese- und Georg-von-Groscurth-Plaetzchen 149-C"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="149-C"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Anneliese- und Georg-von-Groscurth-Plaetzchen"/> + </extension> + </line> + <line value="5. OG - Hinterhof"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="5. OG - Hinterhof"/> + </extension> + </line> + <city value="Bad Homburg"/> + <postalCode value="60437"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <name> + <use value="official"/> + <family value="Weber"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Weber"/> + </extension> + </family> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Kinder- und Jugendmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </beneficiary> + <period> + <end value="2040-04-01"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108416214"/> + </identifier> + <display value="AOK Bayern Die Gesundh."/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/output.json new file mode 100644 index 00000000..e3ab16cd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/output.json @@ -0,0 +1,205 @@ +{ + "resourceType": "Parameters", + "id": "0097fa46-143f-4509-937b-4fe627b85e78", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.002.36" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "22a7d50f-93f8-4975-bf76-00ed4f253e63", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/010e0921-cdd8-46c5-8c1e-c188430f4452" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "text": "2mal tägl. 5ml" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "010e0921-cdd8-46c5-8c1e-c188430f4452", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08585997" + } ], + "text": "Prospan® Hustensaft 100ml N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FLE" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "809ccb03-2a27-4a1b-a70e-af6528710439", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "687777700" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Kinderarztpraxis", + "telecom": [ { + "system": "phone", + "value": "09411234567" + } ], + "address": [ { + "type": "both", + "line": [ "Yorckstraße 15", "Hinterhaus" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "15" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Yorckstraße" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Hinterhaus" + } ] + } ], + "city": "Regensburg", + "postalCode": "93049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "78d6eec5-3445-49e9-9703-7e77b3972391", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "456456534" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Maximilian Weber", + "family": "Weber", + "given": [ "Maximilian" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/output.xml new file mode 100644 index 00000000..185da167 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_8_0097fa46/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0097fa46-143f-4509-937b-4fe627b85e78"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="22a7d50f-93f8-4975-bf76-00ed4f253e63"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/010e0921-cdd8-46c5-8c1e-c188430f4452"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="010e0921-cdd8-46c5-8c1e-c188430f4452"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="809ccb03-2a27-4a1b-a70e-af6528710439"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="78d6eec5-3445-49e9-9703-7e77b3972391"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Maximilian Weber"/> + <family value="Weber"/> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/input.xml new file mode 100644 index 00000000..a864bee8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/input.xml @@ -0,0 +1,382 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="914b7619-621e-4270-a2b5-1cdf95c87d14"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06080621-7d27-448f-8c83-065dd25aa098"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2021-04-03"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bd9c93a5-1172-4971-87a9-351504db765e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/output.json new file mode 100644 index 00000000..81bdbb92 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "45f28601-2a6a-4d91-b6d5-85432c02c6b7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } + }, { + "name": "authoredOn", + "valueDate": "2021-04-03" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "f0483867-64e8-408d-8320-0d1b388df903", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/308f9df4-1a9c-44b8-825f-a35cdbf4d3d0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2021-04-03", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "308f9df4-1a9c-44b8-825f-a35cdbf4d3d0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME-IMMUN 0,5 ml Erwachsene" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2aaa40f7-50b6-4167-923c-7c07b4398e7c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "00fee32e-dd05-4b57-a84b-b38073f6bb30", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/output.xml new file mode 100644 index 00000000..08bbb3e1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/Beispiel_9_45f28601/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="45f28601-2a6a-4d91-b6d5-85432c02c6b7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2021-04-03"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f0483867-64e8-408d-8320-0d1b388df903"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/308f9df4-1a9c-44b8-825f-a35cdbf4d3d0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2021-04-03"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="308f9df4-1a9c-44b8-825f-a35cdbf4d3d0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2aaa40f7-50b6-4167-923c-7c07b4398e7c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="00fee32e-dd05-4b57-a84b-b38073f6bb30"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/input.xml new file mode 100644 index 00000000..89a6d911 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/input.xml @@ -0,0 +1,425 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5f66314e-459a-41e9-a3d7-65c935a8be2c"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2024-11-27"/> + </extension> + <extension url="Unfallbetrieb"> + <valueString value="Arbeitsplatz"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </insurance> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Payor_Type_KBV"/> + <code value="UK"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="120591802"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="Unfallkasse NRW"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/output.json new file mode 100644 index 00000000..4f38a60d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/output.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Parameters", + "id": "9d0a648c-adca-4b93-bfbf-3d16f6a7da09", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.008.18" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1a4cf12b-31d8-4eac-933c-6e7c20be605d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/aef3aea1-692d-498e-a07d-bde0c468f417" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Verwendung ohne Anlegen eines Verbandes" + } ], + "dosageInstruction": [ { + "text": "3mal täglich dünn auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "aef3aea1-692d-498e-a07d-bde0c468f417", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02090906" + } ], + "text": "Fucidine® 20mg/g Creme 15g N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "CRE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "15" + } ], + "unit": "g", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "db2dbdbe-f423-40cd-8c90-a6773232bc5e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "34ff4602-8c6f-4db3-914b-6ac445a50c06", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/output.xml new file mode 100644 index 00000000..0a850cbd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_9d0a648c/output.xml @@ -0,0 +1,223 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9d0a648c-adca-4b93-bfbf-3d16f6a7da09"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1a4cf12b-31d8-4eac-933c-6e7c20be605d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/aef3aea1-692d-498e-a07d-bde0c468f417"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aef3aea1-692d-498e-a07d-bde0c468f417"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="db2dbdbe-f423-40cd-8c90-a6773232bc5e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="34ff4602-8c6f-4db3-914b-6ac445a50c06"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/input.xml new file mode 100644 index 00000000..225db1db --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/input.xml @@ -0,0 +1,425 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5f66314e-459a-41e9-a3d7-65c935a8be2c"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2023-07-27"/> + </extension> + <extension url="Unfallbetrieb"> + <valueString value="Arbeitsplatz"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </insurance> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Payor_Type_KBV"/> + <code value="UK"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="120591802"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="Unfallkasse NRW"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/output.json new file mode 100644 index 00000000..df70c308 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/output.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Parameters", + "id": "d1b3c25f-068d-4240-8bc3-a608392a5621", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.008.18" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9c5f89ea-90e4-4586-ac0d-122e183d8fe4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/aa3ea250-9496-4348-b66f-353fb15bb224" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Verwendung ohne Anlegen eines Verbandes" + } ], + "dosageInstruction": [ { + "text": "3mal täglich dünn auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "aa3ea250-9496-4348-b66f-353fb15bb224", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02090906" + } ], + "text": "Fucidine® 20mg/g Creme 15g N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "CRE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "15" + } ], + "unit": "g", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5e8c84d4-aefb-40fa-b2f9-64069b21fb2c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2e96dce0-19c8-4174-b5b6-9f7eaf8a4c2f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/output.xml new file mode 100644 index 00000000..48a09f3d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Arbeitsunfall_VerordnungArzt_d1b3c25f/output.xml @@ -0,0 +1,223 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d1b3c25f-068d-4240-8bc3-a608392a5621"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9c5f89ea-90e4-4586-ac0d-122e183d8fe4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/aa3ea250-9496-4348-b66f-353fb15bb224"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aa3ea250-9496-4348-b66f-353fb15bb224"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5e8c84d4-aefb-40fa-b2f9-64069b21fb2c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2e96dce0-19c8-4174-b5b6-9f7eaf8a4c2f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/input.xml new file mode 100644 index 00000000..3536b1ea --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="914b7619-621e-4270-a2b5-1cdf95c87d14"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06080621-7d27-448f-8c83-065dd25aa098"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bd9c93a5-1172-4971-87a9-351504db765e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/output.json new file mode 100644 index 00000000..015c4da6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "73dde0af-c487-4b29-a466-514ba161e5bd", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9c3c4ac3-e258-476c-b71a-6f639ad6fd0d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c190fda9-ac5b-4d99-9688-e1ae3ba57df9" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c190fda9-ac5b-4d99-9688-e1ae3ba57df9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME-IMMUN 0,5 ml Erwachsene" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b718cea3-86c6-4810-a082-d3e0415a6371", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "5d608ead-cf47-4655-ae24-220c49812c91", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/output.xml new file mode 100644 index 00000000..209bfc2f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_73dde0af/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="73dde0af-c487-4b29-a466-514ba161e5bd"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9c3c4ac3-e258-476c-b71a-6f639ad6fd0d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c190fda9-ac5b-4d99-9688-e1ae3ba57df9"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c190fda9-ac5b-4d99-9688-e1ae3ba57df9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b718cea3-86c6-4810-a082-d3e0415a6371"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="5d608ead-cf47-4655-ae24-220c49812c91"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/input.xml new file mode 100644 index 00000000..a4958293 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="914b7619-621e-4270-a2b5-1cdf95c87d14"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06080621-7d27-448f-8c83-065dd25aa098"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bd9c93a5-1172-4971-87a9-351504db765e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/output.json new file mode 100644 index 00000000..04261f43 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "8b4bfb2c-fb23-4651-8ad3-2aa7b3d7dda9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "8952a0eb-c474-4bd3-a623-b62d7dff1aa7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3a7c95dd-fac5-4b14-9f0b-67b7a0630abb" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3a7c95dd-fac5-4b14-9f0b-67b7a0630abb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME-IMMUN 0,5 ml Erwachsene" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "d82695ca-9f96-4db6-809f-ebc797618662", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ee393144-cf10-4cf7-8a17-d08b50278b5a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/output.xml new file mode 100644 index 00000000..be068704 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V1_VerordnungArzt_8b4bfb2c/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="8b4bfb2c-fb23-4651-8ad3-2aa7b3d7dda9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="8952a0eb-c474-4bd3-a623-b62d7dff1aa7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3a7c95dd-fac5-4b14-9f0b-67b7a0630abb"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3a7c95dd-fac5-4b14-9f0b-67b7a0630abb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d82695ca-9f96-4db6-809f-ebc797618662"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ee393144-cf10-4cf7-8a17-d08b50278b5a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/input.xml new file mode 100644 index 00000000..3536b1ea --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="914b7619-621e-4270-a2b5-1cdf95c87d14"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06080621-7d27-448f-8c83-065dd25aa098"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bd9c93a5-1172-4971-87a9-351504db765e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/output.json new file mode 100644 index 00000000..d9f3f2c5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "56af13b8-45ff-48c1-9e83-00910b9f7d4c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9218bfe3-6eaa-448d-a830-53971de6bafe", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/d398dd83-f752-49a2-ba93-7d8a17ceacfc" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "d398dd83-f752-49a2-ba93-7d8a17ceacfc", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME-IMMUN 0,5 ml Erwachsene" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "bea76f01-60c0-45f8-8b02-6d6c66bdd19b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d7be3d89-185a-4026-8311-c2787ecf4954", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/output.xml new file mode 100644 index 00000000..9f4d3b1f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_56af13b8/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="56af13b8-45ff-48c1-9e83-00910b9f7d4c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9218bfe3-6eaa-448d-a830-53971de6bafe"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/d398dd83-f752-49a2-ba93-7d8a17ceacfc"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="d398dd83-f752-49a2-ba93-7d8a17ceacfc"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="bea76f01-60c0-45f8-8b02-6d6c66bdd19b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d7be3d89-185a-4026-8311-c2787ecf4954"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/input.xml new file mode 100644 index 00000000..a4958293 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/input.xml @@ -0,0 +1,373 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="914b7619-621e-4270-a2b5-1cdf95c87d14"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="967f5e06-30ce-4229-9eff-4ac8514a87e9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06080621-7d27-448f-8c83-065dd25aa098"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06080621-7d27-448f-8c83-065dd25aa098"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/bd9c93a5-1172-4971-87a9-351504db765e"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bd9c93a5-1172-4971-87a9-351504db765e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/output.json new file mode 100644 index 00000000..3358978a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "be8e2e2c-728c-4f71-a387-9342ce684e65", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.009.15" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0c6bf061-9e73-4106-8efb-1bbcf0a0ca62", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/355911fa-86fc-4d78-b30a-80bdc7fa544b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "355911fa-86fc-4d78-b30a-80bdc7fa544b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": true + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "10259495" + } ], + "text": "FSME-IMMUN 0,5 ml Erwachsene" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FER" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "88e35a7d-a9f6-490c-b248-4bd446900334", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "1f9be95e-c049-4750-a7fd-47926b04b36c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/output.xml new file mode 100644 index 00000000..1f50cbcd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Impfstoff_V2_VerordnungArzt_be8e2e2c/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="be8e2e2c-728c-4f71-a387-9342ce684e65"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.009.15"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0c6bf061-9e73-4106-8efb-1bbcf0a0ca62"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/355911fa-86fc-4d78-b30a-80bdc7fa544b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="355911fa-86fc-4d78-b30a-80bdc7fa544b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="true"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="10259495"/> + </coding> + <text value="FSME-IMMUN 0,5 ml Erwachsene"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FER"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="88e35a7d-a9f6-490c-b248-4bd446900334"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1f9be95e-c049-4750-a7fd-47926b04b36c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/input.xml new file mode 100644 index 00000000..3a9c71be --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/input.xml @@ -0,0 +1,386 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="753fff3b-5373-4f8d-aa22-852792e799d8"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="704db507-79b4-44a1-84b8-344255ad7e36"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1984-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <name> + <use value="official"/> + <family value="Wagner"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Wagner"/> + </extension> + </family> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Gynäkologie und Geburtshilfe mit dem Schwerpunkt der gynäkologischen Endokrinologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/output.json new file mode 100644 index 00000000..fbfb0ae7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/output.json @@ -0,0 +1,211 @@ +{ + "resourceType": "Parameters", + "id": "11769c6a-0e26-4f4f-8e6f-48f29e677d3d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b59848bc-d686-40d7-8f13-b338be73ec45", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1659a1f0-70e1-4c15-88cd-2a4855888da7" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1659a1f0-70e1-4c15-88cd-2a4855888da7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "af805909-4544-4b8d-8264-417dc8591b0a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "722222200" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Frauenheilkunde und Geburtshilfe", + "telecom": [ { + "system": "phone", + "value": "030741852963" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6463498b-9f24-4ff6-a531-3ca458bcb04f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "167761816" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Prof. Dr. med Elias Wagner", + "family": "Wagner", + "given": [ "Elias" ], + "prefix": [ "Prof. Dr. med" ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/output.xml new file mode 100644 index 00000000..e7e8d1fa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_11769c6a/output.xml @@ -0,0 +1,213 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="11769c6a-0e26-4f4f-8e6f-48f29e677d3d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b59848bc-d686-40d7-8f13-b338be73ec45"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1659a1f0-70e1-4c15-88cd-2a4855888da7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1659a1f0-70e1-4c15-88cd-2a4855888da7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="af805909-4544-4b8d-8264-417dc8591b0a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6463498b-9f24-4ff6-a531-3ca458bcb04f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Prof. Dr. med Elias Wagner"/> + <family value="Wagner"/> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/input.xml new file mode 100644 index 00000000..c626b585 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/input.xml @@ -0,0 +1,386 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="753fff3b-5373-4f8d-aa22-852792e799d8"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="704db507-79b4-44a1-84b8-344255ad7e36"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1984-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <name> + <use value="official"/> + <family value="Wagner"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Wagner"/> + </extension> + </family> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Gynäkologie und Geburtshilfe mit dem Schwerpunkt der gynäkologischen Endokrinologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/output.json new file mode 100644 index 00000000..846ee600 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/output.json @@ -0,0 +1,211 @@ +{ + "resourceType": "Parameters", + "id": "7479a5b1-6931-4bb5-b3cb-d5f6a8aa017a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "9e12b2e2-40d8-42f7-a8ea-0d497f8adb8d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4d14f382-08af-4160-8f7e-ecf3aa79ad5b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4d14f382-08af-4160-8f7e-ecf3aa79ad5b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "24ddaf3f-9d6b-4960-8e89-9b009b9e7981", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "722222200" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Frauenheilkunde und Geburtshilfe", + "telecom": [ { + "system": "phone", + "value": "030741852963" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2fef023d-4489-4580-85e9-7dfca3541e68", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "167761816" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Prof. Dr. med Elias Wagner", + "family": "Wagner", + "given": [ "Elias" ], + "prefix": [ "Prof. Dr. med" ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/output.xml new file mode 100644 index 00000000..aa369114 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V1_VerordnungArzt_7479a5b1/output.xml @@ -0,0 +1,213 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="7479a5b1-6931-4bb5-b3cb-d5f6a8aa017a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9e12b2e2-40d8-42f7-a8ea-0d497f8adb8d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4d14f382-08af-4160-8f7e-ecf3aa79ad5b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4d14f382-08af-4160-8f7e-ecf3aa79ad5b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="24ddaf3f-9d6b-4960-8e89-9b009b9e7981"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2fef023d-4489-4580-85e9-7dfca3541e68"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Prof. Dr. med Elias Wagner"/> + <family value="Wagner"/> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/input.xml new file mode 100644 index 00000000..c626b585 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/input.xml @@ -0,0 +1,386 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="753fff3b-5373-4f8d-aa22-852792e799d8"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="704db507-79b4-44a1-84b8-344255ad7e36"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1984-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <name> + <use value="official"/> + <family value="Wagner"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Wagner"/> + </extension> + </family> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Gynäkologie und Geburtshilfe mit dem Schwerpunkt der gynäkologischen Endokrinologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/output.json new file mode 100644 index 00000000..2804fbe9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/output.json @@ -0,0 +1,211 @@ +{ + "resourceType": "Parameters", + "id": "4132b49d-cf58-426c-bb95-770503317e75", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b92728fd-3321-4d05-b6aa-dfd55c3c8ad9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/0b02e9bd-78af-4d50-a6c5-9f1026c18bd4" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "0b02e9bd-78af-4d50-a6c5-9f1026c18bd4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "9715acf1-2e92-461e-aa08-0ad678845376", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "722222200" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Frauenheilkunde und Geburtshilfe", + "telecom": [ { + "system": "phone", + "value": "030741852963" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "731f3b79-6cad-4f1a-ba4e-9eb9b330bd15", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "167761816" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Prof. Dr. med Elias Wagner", + "family": "Wagner", + "given": [ "Elias" ], + "prefix": [ "Prof. Dr. med" ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/output.xml new file mode 100644 index 00000000..a6d80a1e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_4132b49d/output.xml @@ -0,0 +1,213 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="4132b49d-cf58-426c-bb95-770503317e75"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b92728fd-3321-4d05-b6aa-dfd55c3c8ad9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/0b02e9bd-78af-4d50-a6c5-9f1026c18bd4"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="0b02e9bd-78af-4d50-a6c5-9f1026c18bd4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9715acf1-2e92-461e-aa08-0ad678845376"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="731f3b79-6cad-4f1a-ba4e-9eb9b330bd15"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Prof. Dr. med Elias Wagner"/> + <family value="Wagner"/> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/input.xml new file mode 100644 index 00000000..3a9c71be --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/input.xml @@ -0,0 +1,386 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="753fff3b-5373-4f8d-aa22-852792e799d8"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="607046ff-f07a-4093-8880-e7961c0e0ca8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="53dff04a-fa41-45cf-81bc-ce62629917ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/704db507-79b4-44a1-84b8-344255ad7e36"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="704db507-79b4-44a1-84b8-344255ad7e36"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1984-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d77171e1-9bf1-480d-93ee-619d26ea8557"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <name> + <use value="official"/> + <family value="Wagner"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Wagner"/> + </extension> + </family> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Gynäkologie und Geburtshilfe mit dem Schwerpunkt der gynäkologischen Endokrinologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="06c35aa5-d009-436f-aaba-93d835a2fe72"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/output.json new file mode 100644 index 00000000..37d149e4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/output.json @@ -0,0 +1,211 @@ +{ + "resourceType": "Parameters", + "id": "dc3ee448-09b1-420b-b4f1-53de46fa9fd2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.013.03" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "087c7019-6440-40d9-8a6e-bdf9a1246961", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/f2b3da0b-ce19-4dbd-b18f-9ca5009db106" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "f2b3da0b-ce19-4dbd-b18f-9ca5009db106", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "16332684" + } ], + "text": "GONAL-f 150 I.E./0,25ml Injektionslösung" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "PEN" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3e074fe1-7f41-4d20-9ded-bd7a867ac733", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "722222200" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Frauenheilkunde und Geburtshilfe", + "telecom": [ { + "system": "phone", + "value": "030741852963" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "fbf9da40-1af3-4f56-84e5-8aa8ac2cfda8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "167761816" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Prof. Dr. med Elias Wagner", + "family": "Wagner", + "given": [ "Elias" ], + "prefix": [ "Prof. Dr. med" ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/output.xml new file mode 100644 index 00000000..0bdb15a3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_KB_V2_VerordnungArzt_dc3ee448/output.xml @@ -0,0 +1,213 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="dc3ee448-09b1-420b-b4f1-53de46fa9fd2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.013.03"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="087c7019-6440-40d9-8a6e-bdf9a1246961"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f2b3da0b-ce19-4dbd-b18f-9ca5009db106"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f2b3da0b-ce19-4dbd-b18f-9ca5009db106"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="16332684"/> + </coding> + <text value="GONAL-f 150 I.E./0,25ml Injektionslösung"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="PEN"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3e074fe1-7f41-4d20-9ded-bd7a867ac733"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="722222200"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Frauenheilkunde und Geburtshilfe"/> + <telecom> + <system value="phone"/> + <value value="030741852963"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="fbf9da40-1af3-4f56-84e5-8aa8ac2cfda8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="167761816"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Prof. Dr. med Elias Wagner"/> + <family value="Wagner"/> + <given value="Elias"/> + <prefix value="Prof. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/input.xml new file mode 100644 index 00000000..c2e6e1d6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c44ddc5b-21f5-4ce3-995d-ab5ca2633154"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/a77cc2f2-5574-4292-b1b5-2633b7989970"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a77cc2f2-5574-4292-b1b5-2633b7989970"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/00a18271-c4fd-40b6-93a2-d913e51dded6"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/00a18271-c4fd-40b6-93a2-d913e51dded6"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="00a18271-c4fd-40b6-93a2-d913e51dded6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2023-07-27"/> + <end value="2023-08-31"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/output.json new file mode 100644 index 00000000..b1c512fa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "14b48655-461e-43bc-895c-a4dd9d6073de", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.010.12" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "663e1225-458d-4bd5-8fee-918b2be422f6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2023-07-27", + "end": "2023-08-31" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/7a7074f6-4a42-47fa-a225-4a5467fb64d1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "7a7074f6-4a42-47fa-a225-4a5467fb64d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "cb85e303-7567-4c2b-950f-2d9f580e167b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6b885b4c-7b7a-4f42-a1f0-50c731b93bc3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/output.xml new file mode 100644 index 00000000..6182c53d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_14b48655/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="14b48655-461e-43bc-895c-a4dd9d6073de"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="663e1225-458d-4bd5-8fee-918b2be422f6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2023-07-27"/> + <end value="2023-08-31"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/7a7074f6-4a42-47fa-a225-4a5467fb64d1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="7a7074f6-4a42-47fa-a225-4a5467fb64d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cb85e303-7567-4c2b-950f-2d9f580e167b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6b885b4c-7b7a-4f42-a1f0-50c731b93bc3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/input.xml new file mode 100644 index 00000000..6fab64ce --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="c44ddc5b-21f5-4ce3-995d-ab5ca2633154"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/a77cc2f2-5574-4292-b1b5-2633b7989970"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a77cc2f2-5574-4292-b1b5-2633b7989970"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/00a18271-c4fd-40b6-93a2-d913e51dded6"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/00a18271-c4fd-40b6-93a2-d913e51dded6"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="00a18271-c4fd-40b6-93a2-d913e51dded6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2024-11-27"/> + <end value="2024-12-31"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/output.json new file mode 100644 index 00000000..051c953b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "ed826199-f544-49eb-a71c-27326542a58e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.010.12" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a237a907-a586-457e-b0df-59bb9f8efa58", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 1 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2024-11-27", + "end": "2024-12-31" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/eea8d81a-51a7-4995-b3a1-0cfaecd36275" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "eea8d81a-51a7-4995-b3a1-0cfaecd36275", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "45cb3821-7ed8-4b9b-86a7-bc5d9a5371ed", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "97e17d3e-e311-4c09-a552-b71dbab6cc60", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/output.xml new file mode 100644 index 00000000..e9fc0518 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV1_VerordnungArzt_ed826199/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="ed826199-f544-49eb-a71c-27326542a58e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.010.12"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a237a907-a586-457e-b0df-59bb9f8efa58"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="1"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2024-11-27"/> + <end value="2024-12-31"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/eea8d81a-51a7-4995-b3a1-0cfaecd36275"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="eea8d81a-51a7-4995-b3a1-0cfaecd36275"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="45cb3821-7ed8-4b9b-86a7-bc5d9a5371ed"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="97e17d3e-e311-4c09-a552-b71dbab6cc60"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/input.xml new file mode 100644 index 00000000..d428c22c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7031f7f3-cf51-4e77-82d7-b9bdb0a5959f"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d9e03f5a-9b53-4f21-b0d6-c7e86fdee0c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d9e03f5a-9b53-4f21-b0d6-c7e86fdee0c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2025-01-15"/> + <end value="2025-02-28"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/output.json new file mode 100644 index 00000000..c454e902 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "301a581a-51e9-48a2-ba79-a57d67b45230", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.015.94" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "e69433e6-49ac-4cec-978e-0ede8ba2a07b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2025-01-15", + "end": "2025-02-28" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ba51a99f-0ee0-412f-8fcb-cd43722652f3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ba51a99f-0ee0-412f-8fcb-cd43722652f3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "96b1fbc8-4283-4f47-b198-64cb45362fba", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "41269acb-0019-4765-b361-246e02c1674f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/output.xml new file mode 100644 index 00000000..b822301c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_301a581a/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="301a581a-51e9-48a2-ba79-a57d67b45230"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e69433e6-49ac-4cec-978e-0ede8ba2a07b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2025-01-15"/> + <end value="2025-02-28"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ba51a99f-0ee0-412f-8fcb-cd43722652f3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ba51a99f-0ee0-412f-8fcb-cd43722652f3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="96b1fbc8-4283-4f47-b198-64cb45362fba"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="41269acb-0019-4765-b361-246e02c1674f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/input.xml new file mode 100644 index 00000000..c36e2813 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="7031f7f3-cf51-4e77-82d7-b9bdb0a5959f"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d9e03f5a-9b53-4f21-b0d6-c7e86fdee0c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d9e03f5a-9b53-4f21-b0d6-c7e86fdee0c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="68794d6d-2b05-4d5e-aaf1-49b4b6430104"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2023-09-15"/> + <end value="2023-10-30"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/output.json new file mode 100644 index 00000000..3826329a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "720f0d95-bc1c-4e48-97f9-a28d1932b7ea", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.015.94" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "793e4588-c1fc-4f01-80a9-1314ad257e11", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 2 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2023-09-15", + "end": "2023-10-30" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ece20aa1-0d0a-4759-9ac8-9120293d3993" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ece20aa1-0d0a-4759-9ac8-9120293d3993", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b1116917-f161-4a70-a678-b5cabe33f8b3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "99e2c5e1-b395-4e9f-9c38-386afb747576", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/output.xml new file mode 100644 index 00000000..1278bdd0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV2_VerordnungArzt_720f0d95/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="720f0d95-bc1c-4e48-97f9-a28d1932b7ea"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.015.94"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="793e4588-c1fc-4f01-80a9-1314ad257e11"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="2"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2023-09-15"/> + <end value="2023-10-30"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ece20aa1-0d0a-4759-9ac8-9120293d3993"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ece20aa1-0d0a-4759-9ac8-9120293d3993"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b1116917-f161-4a70-a678-b5cabe33f8b3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="99e2c5e1-b395-4e9f-9c38-386afb747576"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/input.xml new file mode 100644 index 00000000..91b01984 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="f70585e0-82f9-4d3d-b248-94504ccf6a66"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/1868bb7c-c1a6-48a6-a327-05ff8d24c64a"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1868bb7c-c1a6-48a6-a327-05ff8d24c64a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/76b5767d-55a5-4233-8f85-e15a24a5193a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/76b5767d-55a5-4233-8f85-e15a24a5193a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="76b5767d-55a5-4233-8f85-e15a24a5193a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2025-03-15"/> + <end value="2025-04-30"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/output.json new file mode 100644 index 00000000..11feacbf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "4474f7d6-5444-434c-9133-5ecbe67eef0a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.016.91" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "c06ea8cc-667a-41c2-915b-f56ba00611cb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 3 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2025-03-15", + "end": "2025-04-30" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/3d13d82c-1d79-4a9b-be4e-5071ecce016a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "3d13d82c-1d79-4a9b-be4e-5071ecce016a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0cb0f545-bb10-4234-beda-4e408f872596", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "b729b5b6-1e95-4cee-abee-3bd75cbd2090", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/output.xml new file mode 100644 index 00000000..61232dc3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_4474f7d6/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="4474f7d6-5444-434c-9133-5ecbe67eef0a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c06ea8cc-667a-41c2-915b-f56ba00611cb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2025-03-15"/> + <end value="2025-04-30"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3d13d82c-1d79-4a9b-be4e-5071ecce016a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3d13d82c-1d79-4a9b-be4e-5071ecce016a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0cb0f545-bb10-4234-beda-4e408f872596"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="b729b5b6-1e95-4cee-abee-3bd75cbd2090"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/input.xml new file mode 100644 index 00000000..778caddc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="f70585e0-82f9-4d3d-b248-94504ccf6a66"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/1868bb7c-c1a6-48a6-a327-05ff8d24c64a"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="1868bb7c-c1a6-48a6-a327-05ff8d24c64a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/76b5767d-55a5-4233-8f85-e15a24a5193a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/76b5767d-55a5-4233-8f85-e15a24a5193a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="76b5767d-55a5-4233-8f85-e15a24a5193a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2023-10-15"/> + <end value="2023-12-31"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/output.json new file mode 100644 index 00000000..28c102d1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "57bd7756-1ece-415e-9c5b-d3e56f445461", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.016.91" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0695de7f-9a44-4dfa-ab77-b82498e08be5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 3 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2023-10-15", + "end": "2023-12-31" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/283ea6c0-eef5-47d2-90e8-99fc218b8094" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "283ea6c0-eef5-47d2-90e8-99fc218b8094", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "a8e501f5-7874-4ffa-b8b8-586c39f711d4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f167ddb5-18e0-4746-9762-1b9083ce847d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/output.xml new file mode 100644 index 00000000..a7f095d8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV3_VerordnungArzt_57bd7756/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="57bd7756-1ece-415e-9c5b-d3e56f445461"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.016.91"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0695de7f-9a44-4dfa-ab77-b82498e08be5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="3"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2023-10-15"/> + <end value="2023-12-31"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/283ea6c0-eef5-47d2-90e8-99fc218b8094"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="283ea6c0-eef5-47d2-90e8-99fc218b8094"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="a8e501f5-7874-4ffa-b8b8-586c39f711d4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f167ddb5-18e0-4746-9762-1b9083ce847d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/input.xml new file mode 100644 index 00000000..ba394bca --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="15da065c-5b75-4acf-a2ba-1355de821d6e"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/f62c91e7-e280-4d32-961b-b07168ab47d7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f62c91e7-e280-4d32-961b-b07168ab47d7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/1e923204-6866-4030-a460-2ce5bd9db26b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/1e923204-6866-4030-a460-2ce5bd9db26b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1e923204-6866-4030-a460-2ce5bd9db26b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2025-04-01"/> + <end value="2025-07-31"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/output.json new file mode 100644 index 00000000..241aa5c0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "438bae6b-3e3f-4be2-96fd-ac9f2067241f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.017.88" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "2eeef5dd-5faa-4058-9b0c-5e687f33b1c4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2025-04-01", + "end": "2025-07-31" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/545f553f-daa9-41c9-b982-03fa577c3947" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "545f553f-daa9-41c9-b982-03fa577c3947", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6956de1b-9675-42cc-babe-075502d05235", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4284b7ea-8ec3-4ae0-88e8-1cf53111dbc1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/output.xml new file mode 100644 index 00000000..d2212b25 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_438bae6b/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="438bae6b-3e3f-4be2-96fd-ac9f2067241f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="2eeef5dd-5faa-4058-9b0c-5e687f33b1c4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2025-04-01"/> + <end value="2025-07-31"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/545f553f-daa9-41c9-b982-03fa577c3947"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="545f553f-daa9-41c9-b982-03fa577c3947"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6956de1b-9675-42cc-babe-075502d05235"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4284b7ea-8ec3-4ae0-88e8-1cf53111dbc1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/input.xml new file mode 100644 index 00000000..b57876fc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/input.xml @@ -0,0 +1,408 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="15da065c-5b75-4acf-a2ba-1355de821d6e"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/f62c91e7-e280-4d32-961b-b07168ab47d7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="f62c91e7-e280-4d32-961b-b07168ab47d7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/1e923204-6866-4030-a460-2ce5bd9db26b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/1e923204-6866-4030-a460-2ce5bd9db26b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1e923204-6866-4030-a460-2ce5bd9db26b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="true"/> + </extension> + <extension url="Nummerierung"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="Zeitraum"> + <valuePeriod> + <start value="2023-12-01"/> + <end value="2024-03-31"/> + </valuePeriod> + </extension> + <extension url="ID"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + </medicationReference> + <subject> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="07c10a67-2ece-4d5d-9394-633e07c9656d"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K030182229"/> + </identifier> + <name> + <use value="official"/> + <family value="Kluge"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Kluge"/> + </extension> + </family> + <given value="Eva"/> + <prefix value="Prof. Dr. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1982-01-03"/> + <address> + <type value="both"/> + <line value="Pflasterhofweg 111B"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="111B"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Pflasterhofweg"/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="50999"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/da80211e-61ee-458e-a651-87370b6ec30c"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="da80211e-61ee-458e-a651-87370b6ec30c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/ce4104af-b86b-4664-afee-1b5fc3ac8acf"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109777509"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/output.json new file mode 100644 index 00000000..ec9201ad --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/output.json @@ -0,0 +1,225 @@ +{ + "resourceType": "Parameters", + "id": "94137fee-aa62-4d07-97e8-c1ec7d5e9658", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.017.88" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "615454de-aa05-4ede-b509-8962eff89b4f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": true + }, { + "url": "counter", + "valueRatio": { + "numerator": { + "value": 4 + }, + "denominator": { + "value": 4 + } + } + }, { + "url": "period", + "valuePeriod": { + "start": "2023-12-01", + "end": "2024-03-31" + } + }, { + "url": "id", + "valueIdentifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0" + } + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/255accfa-31d9-409b-975c-19d6e4699f83" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "255accfa-31d9-409b-975c-19d6e4699f83", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02532741" + } ], + "text": "L-Thyroxin Henning 75 100 Tbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "ad25fcd8-37a3-4ded-9f30-a5969b4fac98", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "f73771ca-8a49-427e-a4b8-8dec35f072ce", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "987654423" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/output.xml new file mode 100644 index 00000000..68bde5e1 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_MV4_VerordnungArzt_94137fee/output.xml @@ -0,0 +1,230 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="94137fee-aa62-4d07-97e8-c1ec7d5e9658"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.017.88"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="615454de-aa05-4ede-b509-8962eff89b4f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="true"/> + </extension> + <extension url="counter"> + <valueRatio> + <numerator> + <value value="4"/> + </numerator> + <denominator> + <value value="4"/> + </denominator> + </valueRatio> + </extension> + <extension url="period"> + <valuePeriod> + <start value="2023-12-01"/> + <end value="2024-03-31"/> + </valuePeriod> + </extension> + <extension url="id"> + <valueIdentifier> + <system value="urn:ietf:rfc:3986"/> + <value value="urn:uuid:24e2e10d-e962-4d1c-be4f-8760e690a5f0"/> + </valueIdentifier> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/255accfa-31d9-409b-975c-19d6e4699f83"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="255accfa-31d9-409b-975c-19d6e4699f83"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02532741"/> + </coding> + <text value="L-Thyroxin Henning 75 100 Tbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ad25fcd8-37a3-4ded-9f30-a5969b4fac98"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="f73771ca-8a49-427e-a4b8-8dec35f072ce"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/input.xml new file mode 100644 index 00000000..6548c352 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/input.xml @@ -0,0 +1,379 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="690a7f01-058e-492a-b1dc-d6d8c8a30a59"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8c5aad28-6029-452d-8f97-0bf213b1a0e3"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8c5aad28-6029-452d-8f97-0bf213b1a0e3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/e538cd5e-883e-4645-af3a-49352fece39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/e538cd5e-883e-4645-af3a-49352fece39b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e538cd5e-883e-4645-af3a-49352fece39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="true"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + </medicationReference> + <subject> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + </requester> + <insurance> + <reference value="Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUP"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + <name> + <use value="official"/> + <family value="Klein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Klein"/> + </extension> + </family> + <given value="Teddy"/> + </name> + <birthDate value="2020-02-29"/> + <address> + <type value="both"/> + <line value="Roritzerstraße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Roritzerstraße"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93047"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <name> + <use value="official"/> + <family value="Weber"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Weber"/> + </extension> + </family> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Kinder- und Jugendmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="76696615-4c18-410e-bcf9-382590c6df3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108416214"/> + </identifier> + <display value="AOK Bayern"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/output.json new file mode 100644 index 00000000..5366d5a0 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/output.json @@ -0,0 +1,205 @@ +{ + "resourceType": "Parameters", + "id": "16489c9e-6b35-457f-a96d-22a1710c6d43", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.003.33" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1380f9f4-5e2e-402c-a7c7-c3693053df45", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c4623257-7704-4589-ab4d-3ded865cc764" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dosageInstruction": [ { + "text": "1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c4623257-7704-4589-ab4d-3ded865cc764", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03386388" + } ], + "text": "INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SUP" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "e0339db0-0555-4e11-8ea5-d22c3c0a452b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "687777700" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Kinderarztpraxis", + "telecom": [ { + "system": "phone", + "value": "09411234567" + } ], + "address": [ { + "type": "both", + "line": [ "Yorckstraße 15", "Hinterhaus" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "15" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Yorckstraße" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Hinterhaus" + } ] + } ], + "city": "Regensburg", + "postalCode": "93049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2eb4dc24-3981-4f34-80da-d1ccc8ea0ddb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "456456534" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Maximilian Weber", + "family": "Weber", + "given": [ "Maximilian" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/output.xml new file mode 100644 index 00000000..71c21b21 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_16489c9e/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="16489c9e-6b35-457f-a96d-22a1710c6d43"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1380f9f4-5e2e-402c-a7c7-c3693053df45"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c4623257-7704-4589-ab4d-3ded865cc764"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c4623257-7704-4589-ab4d-3ded865cc764"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUP"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="e0339db0-0555-4e11-8ea5-d22c3c0a452b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2eb4dc24-3981-4f34-80da-d1ccc8ea0ddb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Maximilian Weber"/> + <family value="Weber"/> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/input.xml new file mode 100644 index 00000000..a077c818 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/input.xml @@ -0,0 +1,379 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="690a7f01-058e-492a-b1dc-d6d8c8a30a59"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8c5aad28-6029-452d-8f97-0bf213b1a0e3"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8c5aad28-6029-452d-8f97-0bf213b1a0e3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/e538cd5e-883e-4645-af3a-49352fece39b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/e538cd5e-883e-4645-af3a-49352fece39b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e538cd5e-883e-4645-af3a-49352fece39b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="true"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + </medicationReference> + <subject> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + </requester> + <insurance> + <reference value="Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a0da7cea-dd87-45ab-988d-0f7c26bd3d0b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUP"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119814"/> + </identifier> + <name> + <use value="official"/> + <family value="Klein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Klein"/> + </extension> + </family> + <given value="Teddy"/> + </name> + <birthDate value="2020-02-29"/> + <address> + <type value="both"/> + <line value="Roritzerstraße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Roritzerstraße"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93047"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <name> + <use value="official"/> + <family value="Weber"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Weber"/> + </extension> + </family> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Kinder- und Jugendmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/76696615-4c18-410e-bcf9-382590c6df3b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="76696615-4c18-410e-bcf9-382590c6df3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/42a5830f-667a-4ee9-bf08-8529f3a5044b"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108416214"/> + </identifier> + <display value="AOK Bayern"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/output.json new file mode 100644 index 00000000..b277136e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/output.json @@ -0,0 +1,205 @@ +{ + "resourceType": "Parameters", + "id": "6442b691-0d95-460c-a86f-a2f7d541d527", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.003.33" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "23abac5b-f4c4-4cac-b64b-8b1bb7300617", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/70c0982c-4694-4057-add3-6cc9dc972d1b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dosageInstruction": [ { + "text": "1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "70c0982c-4694-4057-add3-6cc9dc972d1b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03386388" + } ], + "text": "INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SUP" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "015d7024-a4e6-4de6-b903-965a0d75e131", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "687777700" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Kinderarztpraxis", + "telecom": [ { + "system": "phone", + "value": "09411234567" + } ], + "address": [ { + "type": "both", + "line": [ "Yorckstraße 15", "Hinterhaus" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "15" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Yorckstraße" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Hinterhaus" + } ] + } ], + "city": "Regensburg", + "postalCode": "93049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6948599f-2fba-4af2-9200-2417d68dd922", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "456456534" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Maximilian Weber", + "family": "Weber", + "given": [ "Maximilian" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/output.xml new file mode 100644 index 00000000..66d0f276 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Noctu_VerordnungArzt_6442b691/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6442b691-0d95-460c-a86f-a2f7d541d527"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.003.33"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="23abac5b-f4c4-4cac-b64b-8b1bb7300617"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/70c0982c-4694-4057-add3-6cc9dc972d1b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dosageInstruction> + <text value="1x, im Bedarfsfall noch 1x nach 1h (max. 3 Stk in 48 h)"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="70c0982c-4694-4057-add3-6cc9dc972d1b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03386388"/> + </coding> + <text value="INFECTOCORTIKRUPP® Zäpfchen 100 mg 3 Supp. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SUP"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="015d7024-a4e6-4de6-b903-965a0d75e131"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6948599f-2fba-4af2-9200-2417d68dd922"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Maximilian Weber"/> + <family value="Weber"/> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/input.xml new file mode 100644 index 00000000..8f4a2acf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/input.xml @@ -0,0 +1,414 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="281a985c-f25b-4aae-91a6-41ad744080b0"/> + <meta> + <lastUpdated value="2024-11-30T09:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-30T09:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Composition/ed52c1e3-b700-4497-ae19-b23744e29876"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ed52c1e3-b700-4497-ae19-b23744e29876"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + </subject> + <date value="2024-11-30T09:30:00Z"/> + <author> + <reference value="Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/1910/36/346"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/cf042e44-086a-4d51-9c77-172f9a972e3b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/e930cdee-9eb5-4b44-88b5-2a18b69f3b9a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="FOR_PractitionerRole"/> + </coding> + </code> + <entry> + <reference value="PractitionerRole/9a4090f8-8c5a-11ea-bc55-0242ac13000"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/MedicationRequest/e930cdee-9eb5-4b44-88b5-2a18b69f3b9a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e930cdee-9eb5-4b44-88b5-2a18b69f3b9a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5fe6e06c-8725-46d5-aecd-e65e041ca3de"/> + </medicationReference> + <subject> + <reference value="Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + </subject> + <authoredOn value="2024-11-30"/> + <requester> + <reference value="Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + </requester> + <insurance> + <reference value="Coverage/1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Medication/5fe6e06c-8725-46d5-aecd-e65e041ca3de"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5fe6e06c-8725-46d5-aecd-e65e041ca3de"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="12"/> + </extension> + <unit value="TAB"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="9774f67f-a238-4daf-b4e6-679deeef3811"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567891"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Musterstr. 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="838382202"/> + </identifier> + <name> + <use value="official"/> + <family value="Topp-Glücklich"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Topp-Glücklich"/> + </extension> + </family> + <given value="Hans"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Hausarzt"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Organization/cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Coverage/1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="03"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/PractitionerRole/9a4090f8-8c5a-11ea-bc55-0242ac13000"/> + <resource> + <PractitionerRole xmlns="http://hl7.org/fhir"> + <id value="9a4090f8-8c5a-11ea-bc55-0242ac13000"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_PractitionerRole|1.1.0"/> + </meta> + <practitioner> + <reference value="Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + </practitioner> + <organization> + <identifier> + <system value="http://fhir.de/NamingSystem/asv/teamnummer"/> + <value value="003456789"/> + </identifier> + </organization> + </PractitionerRole> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/output.json new file mode 100644 index 00000000..e1835ce3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/output.json @@ -0,0 +1,213 @@ +{ + "resourceType": "Parameters", + "id": "08de8f6d-1259-4ff0-82cd-288c53ee531e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.764.737.300.50" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-30" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "6c3c2936-60fc-4e97-b26f-8d3db63d4152", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/ba0649bc-99d8-45da-b8d6-f0fde713ae43" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-30", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "ba0649bc-99d8-45da-b8d6-f0fde713ae43", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "12" + } ], + "unit": "TAB", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "ea327e77-cb05-4d3e-8a82-b34a57d1c892", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "031234567" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis Dr. Topp-Glücklich", + "telecom": [ { + "system": "phone", + "value": "0301234567" + } ], + "address": [ { + "type": "both", + "line": [ "Musterstr. 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Musterstr." + } ] + } ], + "city": "Berlin", + "postalCode": "10623" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e4629638-ef13-4cf8-af0d-a07c744811d4", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "838382202" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Hans Topp-Glücklich", + "family": "Topp-Glücklich", + "given": [ "Hans" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/output.xml new file mode 100644 index 00000000..39fe1754 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_08de8f6d/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="08de8f6d-1259-4ff0-82cd-288c53ee531e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-30"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="6c3c2936-60fc-4e97-b26f-8d3db63d4152"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/ba0649bc-99d8-45da-b8d6-f0fde713ae43"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-30"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="ba0649bc-99d8-45da-b8d6-f0fde713ae43"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="12"/> + </extension> + <unit value="TAB"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="ea327e77-cb05-4d3e-8a82-b34a57d1c892"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e4629638-ef13-4cf8-af0d-a07c744811d4"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="838382202"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Hans Topp-Glücklich"/> + <family value="Topp-Glücklich"/> + <given value="Hans"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/input.xml new file mode 100644 index 00000000..572383de --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/input.xml @@ -0,0 +1,414 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="281a985c-f25b-4aae-91a6-41ad744080b0"/> + <meta> + <lastUpdated value="2023-07-30T09:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-30T09:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Composition/ed52c1e3-b700-4497-ae19-b23744e29876"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ed52c1e3-b700-4497-ae19-b23744e29876"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + </subject> + <date value="2023-07-30T09:30:00Z"/> + <author> + <reference value="Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/1910/36/346"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/cf042e44-086a-4d51-9c77-172f9a972e3b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/e930cdee-9eb5-4b44-88b5-2a18b69f3b9a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="FOR_PractitionerRole"/> + </coding> + </code> + <entry> + <reference value="PractitionerRole/9a4090f8-8c5a-11ea-bc55-0242ac13000"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/MedicationRequest/e930cdee-9eb5-4b44-88b5-2a18b69f3b9a"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="e930cdee-9eb5-4b44-88b5-2a18b69f3b9a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/5fe6e06c-8725-46d5-aecd-e65e041ca3de"/> + </medicationReference> + <subject> + <reference value="Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + </subject> + <authoredOn value="2023-07-30"/> + <requester> + <reference value="Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + </requester> + <insurance> + <reference value="Coverage/1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Medication/5fe6e06c-8725-46d5-aecd-e65e041ca3de"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="5fe6e06c-8725-46d5-aecd-e65e041ca3de"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="12"/> + </extension> + <unit value="TAB"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="9774f67f-a238-4daf-b4e6-679deeef3811"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567891"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Musterstr. 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="838382202"/> + </identifier> + <name> + <use value="official"/> + <family value="Topp-Glücklich"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Topp-Glücklich"/> + </extension> + </family> + <given value="Hans"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Hausarzt"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Organization/cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Coverage/1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b1ffb6e-eb05-43d7-87eb-e7818fe9661a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="03"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/9774f67f-a238-4daf-b4e6-679deeef3811"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/PractitionerRole/9a4090f8-8c5a-11ea-bc55-0242ac13000"/> + <resource> + <PractitionerRole xmlns="http://hl7.org/fhir"> + <id value="9a4090f8-8c5a-11ea-bc55-0242ac13000"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_PractitionerRole|1.1.0"/> + </meta> + <practitioner> + <reference value="Practitioner/20597e0e-cb2a-45b3-95f0-dc3dbdb617c3"/> + </practitioner> + <organization> + <identifier> + <system value="http://fhir.de/NamingSystem/asv/teamnummer"/> + <value value="003456789"/> + </identifier> + </organization> + </PractitionerRole> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/output.json new file mode 100644 index 00000000..c9ae7f1c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/output.json @@ -0,0 +1,213 @@ +{ + "resourceType": "Parameters", + "id": "9123419b-ff7c-45d8-89a0-07b4aa3d12d7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.764.737.300.50" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-30" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d5c6a4b6-e703-4c43-82a5-fe2037bf07d1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/69ed06c2-3956-4159-9313-a5a5eb7b9582" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-30", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "69ed06c2-3956-4159-9313-a5a5eb7b9582", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "12" + } ], + "unit": "TAB", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "529eb19c-f2a5-4ea0-866e-3242050d6e2d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "031234567" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis Dr. Topp-Glücklich", + "telecom": [ { + "system": "phone", + "value": "0301234567" + } ], + "address": [ { + "type": "both", + "line": [ "Musterstr. 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Musterstr." + } ] + } ], + "city": "Berlin", + "postalCode": "10623" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d4c0e15d-ea8e-4b14-bf86-db5183b4e70d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "838382202" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Hans Topp-Glücklich", + "family": "Topp-Glücklich", + "given": [ "Hans" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/output.xml new file mode 100644 index 00000000..59a87452 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr1_VerordnungArzt_9123419b/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9123419b-ff7c-45d8-89a0-07b4aa3d12d7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.764.737.300.50"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-30"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d5c6a4b6-e703-4c43-82a5-fe2037bf07d1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/69ed06c2-3956-4159-9313-a5a5eb7b9582"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-30"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="69ed06c2-3956-4159-9313-a5a5eb7b9582"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="12"/> + </extension> + <unit value="TAB"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="529eb19c-f2a5-4ea0-866e-3242050d6e2d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d4c0e15d-ea8e-4b14-bf86-db5183b4e70d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="838382202"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Hans Topp-Glücklich"/> + <family value="Topp-Glücklich"/> + <given value="Hans"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/input.xml new file mode 100644 index 00000000..4a5b9fae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/input.xml @@ -0,0 +1,368 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="aea2f4c5-675a-4d76-ab9b-7994c80b64ec"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6aba4ca1-6bc9-47db-a58d-946b5ded26b7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6aba4ca1-6bc9-47db-a58d-946b5ded26b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/7d871b93-e18c-4865-bad0-6b55196be46b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/7d871b93-e18c-4865-bad0-6b55196be46b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7d871b93-e18c-4865-bad0-6b55196be46b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="true"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392039"/> + </coding> + <text value="Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/output.json new file mode 100644 index 00000000..212c79ea --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "bcffbf63-62f9-40e0-83f7-f88edde3b449", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.001.39" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "581fbfd2-f1b2-4b6a-a3e1-6a551123ede4", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/8028db42-8b4c-4136-bd0e-485be7995663" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8028db42-8b4c-4136-bd0e-485be7995663", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "05392039" + } ], + "text": "Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "61946651-9b89-481f-a217-9a0db52814d8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "40de9302-3504-46cd-bf68-6fae4501f07a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/output.xml new file mode 100644 index 00000000..4cdd6c65 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_bcffbf63/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="bcffbf63-62f9-40e0-83f7-f88edde3b449"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="581fbfd2-f1b2-4b6a-a3e1-6a551123ede4"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8028db42-8b4c-4136-bd0e-485be7995663"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8028db42-8b4c-4136-bd0e-485be7995663"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392039"/> + </coding> + <text value="Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="61946651-9b89-481f-a217-9a0db52814d8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="40de9302-3504-46cd-bf68-6fae4501f07a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/input.xml new file mode 100644 index 00000000..d6e768b7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/input.xml @@ -0,0 +1,368 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="aea2f4c5-675a-4d76-ab9b-7994c80b64ec"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6aba4ca1-6bc9-47db-a58d-946b5ded26b7"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6aba4ca1-6bc9-47db-a58d-946b5ded26b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/7d871b93-e18c-4865-bad0-6b55196be46b"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/7d871b93-e18c-4865-bad0-6b55196be46b"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7d871b93-e18c-4865-bad0-6b55196be46b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="true"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + </medicationReference> + <subject> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a3ca01a4-92c1-422a-87d9-ef046e94527f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392039"/> + </coding> + <text value="Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="30635f5d-c233-4500-94e8-6414940236aa"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220645122"/> + </identifier> + <name> + <use value="official"/> + <family value="Schuhmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schuhmann"/> + </extension> + </family> + <given value="Sahra"/> + </name> + <birthDate value="1970-12-24"/> + <address> + <type value="both"/> + <line value="Berliner Straße 1"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="1"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Berliner Straße"/> + </extension> + </line> + <city value="Husum"/> + <postalCode value="25813"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="06"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/30635f5d-c233-4500-94e8-6414940236aa"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108018347"/> + </identifier> + <display value="AOK Ludwigsburg-Bietigheim"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/output.json new file mode 100644 index 00000000..01df3b51 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/output.json @@ -0,0 +1,190 @@ +{ + "resourceType": "Parameters", + "id": "d639673c-384b-4e54-bc9e-154b84773569", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.001.39" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7a04ade6-1bea-47f0-8c9f-79d7627749db", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/aa28ef9e-5241-4732-8271-beca0ef0028a" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "aa28ef9e-5241-4732-8271-beca0ef0028a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "05392039" + } ], + "text": "Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "11494b10-c4da-42ef-9e28-901d7884e5fc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "4c1c5eee-af30-4fd2-a94a-4249223ef120", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/output.xml new file mode 100644 index 00000000..bdc7ee5b --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr2_VerordnungArzt_d639673c/output.xml @@ -0,0 +1,195 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d639673c-384b-4e54-bc9e-154b84773569"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.001.39"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7a04ade6-1bea-47f0-8c9f-79d7627749db"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/aa28ef9e-5241-4732-8271-beca0ef0028a"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="aa28ef9e-5241-4732-8271-beca0ef0028a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="05392039"/> + </coding> + <text value="Venlafaxin - 1 A Pharma® 75mg 100 Tabl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="11494b10-c4da-42ef-9e28-901d7884e5fc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4c1c5eee-af30-4fd2-a94a-4249223ef120"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/input.xml new file mode 100644 index 00000000..fad486a6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/input.xml @@ -0,0 +1,384 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="44420ed9-7388-4be5-acc5-9c124fad9f34"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/output.json new file mode 100644 index 00000000..c95a1ed5 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/output.json @@ -0,0 +1,203 @@ +{ + "resourceType": "Parameters", + "id": "9ac0942e-124b-4849-8d89-6640c76476ac", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.006.24" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b0e7ff23-8049-4b1a-969a-9d1e954a3e11", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/31b2df59-cedf-427c-9acd-18e545739de8" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "31b2df59-cedf-427c-9acd-18e545739de8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00814665" + } ], + "text": "Januvia® 50 mg 28 Filmtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "3893d5a5-10b0-4794-9db5-1db1b9d459f8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "6d02036f-e243-49a0-bdcd-c2fa62553153", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/output.xml new file mode 100644 index 00000000..1359448e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_9ac0942e/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="9ac0942e-124b-4849-8d89-6640c76476ac"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b0e7ff23-8049-4b1a-969a-9d1e954a3e11"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/31b2df59-cedf-427c-9acd-18e545739de8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="31b2df59-cedf-427c-9acd-18e545739de8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="3893d5a5-10b0-4794-9db5-1db1b9d459f8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="6d02036f-e243-49a0-bdcd-c2fa62553153"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/input.xml new file mode 100644 index 00000000..d94ab18f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/input.xml @@ -0,0 +1,384 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="44420ed9-7388-4be5-acc5-9c124fad9f34"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/output.json new file mode 100644 index 00000000..84646800 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/output.json @@ -0,0 +1,203 @@ +{ + "resourceType": "Parameters", + "id": "b2afa612-7a82-4a97-b72e-4eea2b555fa1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.006.24" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "f1b3b183-735c-41ad-a625-e2709f971887", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/1e36ed4c-ba3b-4a28-8695-7b31eaee81c2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "1e36ed4c-ba3b-4a28-8695-7b31eaee81c2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00814665" + } ], + "text": "Januvia® 50 mg 28 Filmtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0af9b8e5-2a04-4275-a3f4-24f5ff72a1fb", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "da25a87a-da50-45ea-bf49-090f63ffe74f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/output.xml new file mode 100644 index 00000000..6d36cb6c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr3_VerordnungArzt_b2afa612/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b2afa612-7a82-4a97-b72e-4eea2b555fa1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f1b3b183-735c-41ad-a625-e2709f971887"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/1e36ed4c-ba3b-4a28-8695-7b31eaee81c2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="1e36ed4c-ba3b-4a28-8695-7b31eaee81c2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0af9b8e5-2a04-4275-a3f4-24f5ff72a1fb"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="da25a87a-da50-45ea-bf49-090f63ffe74f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/input.xml new file mode 100644 index 00000000..f911c5dd --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/input.xml @@ -0,0 +1,393 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="0428d416-149e-48a4-977c-394887b3d85c"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/a054c2f3-0123-4d33-a0b3-bedec2f7d1ea"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a054c2f3-0123-4d33-a0b3-bedec2f7d1ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f568397d-7ba2-46ac-904b-02caec933b42"/> + </medicationReference> + <subject> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + </requester> + <insurance> + <reference value="Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/f568397d-7ba2-46ac-904b-02caec933b42"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f568397d-7ba2-46ac-904b-02caec933b42"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + <name> + <use value="official"/> + <family value="Erbprinzessin von und zu der Schimmelpfennig-Hammerschmidt Federmannssohn"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Erbprinzessin"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schimmelpfennig-Hammerschmidt Federmannssohn"/> + </extension> + </family> + <given value="Ingrid"/> + </name> + <birthDate value="2010-01-31"/> + <address> + <type value="both"/> + <line value="Anneliese- und Georg-von-Groscurth-Plaetzchen 149-C"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="149-C"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Anneliese- und Georg-von-Groscurth-Plaetzchen"/> + </extension> + </line> + <line value="5. OG - Hinterhof"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="5. OG - Hinterhof"/> + </extension> + </line> + <city value="Bad Homburg"/> + <postalCode value="60437"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <name> + <use value="official"/> + <family value="Weber"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Weber"/> + </extension> + </family> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Kinder- und Jugendmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </beneficiary> + <period> + <end value="2040-04-01"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108416214"/> + </identifier> + <display value="AOK Bayern"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/output.json new file mode 100644 index 00000000..03966c32 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/output.json @@ -0,0 +1,205 @@ +{ + "resourceType": "Parameters", + "id": "c2530fad-4c53-43dd-9593-a6e3f7b44ce6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.002.36" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "154463cf-ed19-4fd6-8ba5-4fa3836ed9f7", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/16d16dc2-62c5-47ff-8296-258f451be8f5" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dosageInstruction": [ { + "text": "2mal tägl. 5ml" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "16d16dc2-62c5-47ff-8296-258f451be8f5", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08585997" + } ], + "text": "Prospan® Hustensaft 100ml N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FLE" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "6aa2b709-0cff-4f0d-b25e-e73d8569280f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "687777700" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Kinderarztpraxis", + "telecom": [ { + "system": "phone", + "value": "09411234567" + } ], + "address": [ { + "type": "both", + "line": [ "Yorckstraße 15", "Hinterhaus" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "15" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Yorckstraße" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Hinterhaus" + } ] + } ], + "city": "Regensburg", + "postalCode": "93049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "33a09223-bc44-40c8-87d5-979f32fdd3b8", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "456456534" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Maximilian Weber", + "family": "Weber", + "given": [ "Maximilian" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/output.xml new file mode 100644 index 00000000..214a545d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_c2530fad/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c2530fad-4c53-43dd-9593-a6e3f7b44ce6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="154463cf-ed19-4fd6-8ba5-4fa3836ed9f7"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/16d16dc2-62c5-47ff-8296-258f451be8f5"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="16d16dc2-62c5-47ff-8296-258f451be8f5"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="6aa2b709-0cff-4f0d-b25e-e73d8569280f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="33a09223-bc44-40c8-87d5-979f32fdd3b8"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Maximilian Weber"/> + <family value="Weber"/> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/input.xml new file mode 100644 index 00000000..71aea3cc --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/input.xml @@ -0,0 +1,393 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="0428d416-149e-48a4-977c-394887b3d85c"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/a054c2f3-0123-4d33-a0b3-bedec2f7d1ea"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="a054c2f3-0123-4d33-a0b3-bedec2f7d1ea"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="06dc1594-509a-4f4c-ada7-dfd477a02d86"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/f568397d-7ba2-46ac-904b-02caec933b42"/> + </medicationReference> + <subject> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + </requester> + <insurance> + <reference value="Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/f568397d-7ba2-46ac-904b-02caec933b42"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="f568397d-7ba2-46ac-904b-02caec933b42"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="M310119802"/> + </identifier> + <name> + <use value="official"/> + <family value="Erbprinzessin von und zu der Schimmelpfennig-Hammerschmidt Federmannssohn"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Erbprinzessin"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schimmelpfennig-Hammerschmidt Federmannssohn"/> + </extension> + </family> + <given value="Ingrid"/> + </name> + <birthDate value="2010-01-31"/> + <address> + <type value="both"/> + <line value="Anneliese- und Georg-von-Groscurth-Plaetzchen 149-C"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="149-C"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Anneliese- und Georg-von-Groscurth-Plaetzchen"/> + </extension> + </line> + <line value="5. OG - Hinterhof"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="5. OG - Hinterhof"/> + </extension> + </line> + <city value="Bad Homburg"/> + <postalCode value="60437"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e33d2afd-44c8-462b-80e5-52dbe5ebf359"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <name> + <use value="official"/> + <family value="Weber"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Weber"/> + </extension> + </family> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Kinder- und Jugendmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d2b30a70-9830-4968-ab97-688472b6f9a3"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="df0f2536-97b9-4bae-99cc-83ba2e8371e4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="3"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/512ab5bc-a7ab-4fd7-81cc-16a594f747a6"/> + </beneficiary> + <period> + <end value="2040-04-01"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108416214"/> + </identifier> + <display value="AOK Bayern"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/output.json new file mode 100644 index 00000000..a5986b20 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/output.json @@ -0,0 +1,205 @@ +{ + "resourceType": "Parameters", + "id": "d3c47fcf-0576-4d6e-8df5-b143dee4d0ef", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.002.36" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "912badcb-b9c6-4a38-b2c4-f9f48610d8eb", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/e3e97424-0d1b-48e7-a000-f3a7f73c3842" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dosageInstruction": [ { + "text": "2mal tägl. 5ml" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e3e97424-0d1b-48e7-a000-f3a7f73c3842", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08585997" + } ], + "text": "Prospan® Hustensaft 100ml N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FLE" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2e8d2a32-c675-4cfd-8a6f-d7808f31235d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "687777700" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Kinderarztpraxis", + "telecom": [ { + "system": "phone", + "value": "09411234567" + } ], + "address": [ { + "type": "both", + "line": [ "Yorckstraße 15", "Hinterhaus" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "15" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Yorckstraße" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Hinterhaus" + } ] + } ], + "city": "Regensburg", + "postalCode": "93049", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "db9c8b41-eb2e-48ce-9c40-9b922c41f4a2", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "456456534" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Maximilian Weber", + "family": "Weber", + "given": [ "Maximilian" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/output.xml new file mode 100644 index 00000000..52045bef --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr4_VerordnungArzt_d3c47fcf/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d3c47fcf-0576-4d6e-8df5-b143dee4d0ef"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.002.36"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="912badcb-b9c6-4a38-b2c4-f9f48610d8eb"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e3e97424-0d1b-48e7-a000-f3a7f73c3842"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dosageInstruction> + <text value="2mal tägl. 5ml"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e3e97424-0d1b-48e7-a000-f3a7f73c3842"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08585997"/> + </coding> + <text value="Prospan® Hustensaft 100ml N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FLE"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2e8d2a32-c675-4cfd-8a6f-d7808f31235d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="687777700"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Kinderarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="09411234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Yorckstraße 15"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="15"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Yorckstraße"/> + </extension> + </line> + <line value="Hinterhaus"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Hinterhaus"/> + </extension> + </line> + <city value="Regensburg"/> + <postalCode value="93049"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="db9c8b41-eb2e-48ce-9c40-9b922c41f4a2"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="456456534"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Maximilian Weber"/> + <family value="Weber"/> + <given value="Maximilian"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/input.xml new file mode 100644 index 00000000..7a7c53c8 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/input.xml @@ -0,0 +1,388 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="34abcf97-6693-422e-b6f0-0ba9b232843e"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2300d28c-c5db-45ce-bcb6-1d3bc126f846"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2300d28c-c5db-45ce-bcb6-1d3bc126f846"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/f3de8250-06d8-492a-8f53-978d97a21836"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/f3de8250-06d8-492a-8f53-978d97a21836"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f3de8250-06d8-492a-8f53-978d97a21836"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08671219"/> + </coding> + <text value="Aciclovir 800 - 1 A Pharma® 35 Tbl. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus Betriebskrankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/output.json new file mode 100644 index 00000000..80a103d2 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "1dac39db-52e7-4578-aaa1-9d72fa1aa20a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.014.97" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "b1cb701f-a348-4cab-8810-e914fc2cb076", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/900443e1-fd41-45fc-885c-f052da28e297" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "900443e1-fd41-45fc-885c-f052da28e297", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08671219" + } ], + "text": "Aciclovir 800 - 1 A Pharma® 35 Tbl. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5f822281-9003-4c54-96e0-742c1410a3c9", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "93bff49c-ddeb-48f3-86a2-7056c82f31be", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/output.xml new file mode 100644 index 00000000..6bd2b399 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_1dac39db/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1dac39db-52e7-4578-aaa1-9d72fa1aa20a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="b1cb701f-a348-4cab-8810-e914fc2cb076"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/900443e1-fd41-45fc-885c-f052da28e297"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="900443e1-fd41-45fc-885c-f052da28e297"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08671219"/> + </coding> + <text value="Aciclovir 800 - 1 A Pharma® 35 Tbl. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5f822281-9003-4c54-96e0-742c1410a3c9"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="93bff49c-ddeb-48f3-86a2-7056c82f31be"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/input.xml new file mode 100644 index 00000000..b708ae71 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/input.xml @@ -0,0 +1,388 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="34abcf97-6693-422e-b6f0-0ba9b232843e"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2300d28c-c5db-45ce-bcb6-1d3bc126f846"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2300d28c-c5db-45ce-bcb6-1d3bc126f846"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/f3de8250-06d8-492a-8f53-978d97a21836"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/f3de8250-06d8-492a-8f53-978d97a21836"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f3de8250-06d8-492a-8f53-978d97a21836"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + </medicationReference> + <subject> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="89d7fd61-1f81-4ee5-aab1-d6428e0c6e79"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08671219"/> + </coding> + <text value="Aciclovir 800 - 1 A Pharma® 35 Tbl. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="H030170228"/> + </identifier> + <name> + <use value="official"/> + <family value="Grossherzog von und zu der Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Grossherzog"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von und zu der"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumbërg-von-und-zu-Schaumburg-und-Radëberg"/> + </extension> + </family> + <given value="Friëdrich-Wilhelm-Karl-Gustav-Justus-Gotfried"/> + <prefix value="Prof. habil. Dr. med"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1951-07-12"/> + <address> + <type value="postal"/> + <line value="124589"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"> + <valueString value="124589"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="12489"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="e51239e1-ba74-48e0-97fb-9754d2b05c60"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="72"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/1d36152b-40c6-4aeb-a552-86a4d3277edc"/> + </beneficiary> + <period> + <end value="2034-12-31"/> + </period> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="108035612"/> + </identifier> + <display value="mhplus Betriebskrankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/output.json new file mode 100644 index 00000000..dbcdd4cf --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/output.json @@ -0,0 +1,198 @@ +{ + "resourceType": "Parameters", + "id": "d94a9be1-33bd-45c7-ba2b-95a6398d28a8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.014.97" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3b66bd58-0de9-41a9-ae02-5d5876971ede", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/6d77b3a5-9acf-4d32-b089-7ed518e5bd22" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "6d77b3a5-9acf-4d32-b089-7ed518e5bd22", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08671219" + } ], + "text": "Aciclovir 800 - 1 A Pharma® 35 Tbl. N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f201c7c4-ec79-4a19-9545-ae54a2d3e053", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2d3e40a2-ee64-4811-9239-4518b509f753", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/output.xml new file mode 100644 index 00000000..542702b3 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr5_VerordnungArzt_d94a9be1/output.xml @@ -0,0 +1,204 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d94a9be1-33bd-45c7-ba2b-95a6398d28a8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.014.97"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3b66bd58-0de9-41a9-ae02-5d5876971ede"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/6d77b3a5-9acf-4d32-b089-7ed518e5bd22"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="6d77b3a5-9acf-4d32-b089-7ed518e5bd22"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08671219"/> + </coding> + <text value="Aciclovir 800 - 1 A Pharma® 35 Tbl. N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f201c7c4-ec79-4a19-9545-ae54a2d3e053"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2d3e40a2-ee64-4811-9239-4518b509f753"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/input.xml new file mode 100644 index 00000000..be901635 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="14f3cff7-f921-429e-98ca-c65dcb367ba9"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8068fd3c-6eed-4b58-9840-c0661e48b6a9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8068fd3c-6eed-4b58-9840-c0661e48b6a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="04"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/fe73acaf-c683-460d-9961-3ae6f87068f2"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/fe73acaf-c683-460d-9961-3ae6f87068f2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fe73acaf-c683-460d-9961-3ae6f87068f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + </medicationReference> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + </requester> + <insurance> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + <name> + <use value="official"/> + <family value="Pan"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Pan"/> + </extension> + </family> + <given value="Peter"/> + </name> + <birthDate value="1972"/> + <address> + <type value="both"/> + <line value="Siebengebirgsstraße 59"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siebengebirgsstraße"/> + </extension> + </line> + <line value="33. Obergeschoss - Hinterhof, halbrechts"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="33. Obergeschoss - Hinterhof, halbrechts"/> + </extension> + </line> + <city value="Königswinter"/> + <postalCode value="53639"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <name> + <use value="official"/> + <family value="Meyer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Meyer"/> + </extension> + </family> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin der Onkologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101377508"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/output.json new file mode 100644 index 00000000..dac6acef --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/output.json @@ -0,0 +1,217 @@ +{ + "resourceType": "Parameters", + "id": "1971398c-275f-4eff-9192-55cadaacf777", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.011.09" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "4e5f68a9-9809-403a-9021-500e8708a76e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/8ab8483e-8c22-48f2-a208-8407a0d69288" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "8ab8483e-8c22-48f2-a208-8407a0d69288", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04773414" + } ], + "text": "Doxycyclin AL 200 T, 10 Tabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "afeb6388-5050-4db6-aff7-40428abc6865", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "757299999" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Krankenhaus", + "telecom": [ { + "system": "phone", + "value": "0309876543" + }, { + "system": "email", + "value": "krankenhaus@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Wegelystraße 3" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "3" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Wegelystraße" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "82e9bc97-ed9c-48e2-918b-18e87230ca84", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "159753527" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Mia Meyer", + "family": "Meyer", + "given": [ "Mia" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/output.xml new file mode 100644 index 00000000..ed92f74c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_1971398c/output.xml @@ -0,0 +1,220 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="1971398c-275f-4eff-9192-55cadaacf777"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="4e5f68a9-9809-403a-9021-500e8708a76e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/8ab8483e-8c22-48f2-a208-8407a0d69288"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="8ab8483e-8c22-48f2-a208-8407a0d69288"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="afeb6388-5050-4db6-aff7-40428abc6865"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="82e9bc97-ed9c-48e2-918b-18e87230ca84"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Mia Meyer"/> + <family value="Meyer"/> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/input.xml new file mode 100644 index 00000000..1cb6adf7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="14f3cff7-f921-429e-98ca-c65dcb367ba9"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/8068fd3c-6eed-4b58-9840-c0661e48b6a9"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="8068fd3c-6eed-4b58-9840-c0661e48b6a9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="04"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/fe73acaf-c683-460d-9961-3ae6f87068f2"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/fe73acaf-c683-460d-9961-3ae6f87068f2"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="fe73acaf-c683-460d-9961-3ae6f87068f2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + </medicationReference> + <subject> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + </requester> + <insurance> + <reference value="Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c1e7027e-3c5b-4e87-a10a-572676b92e22"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="c9e9eeb8-e397-4d62-a977-656a18027f90"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="P223331978"/> + </identifier> + <name> + <use value="official"/> + <family value="Pan"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Pan"/> + </extension> + </family> + <given value="Peter"/> + </name> + <birthDate value="1972"/> + <address> + <type value="both"/> + <line value="Siebengebirgsstraße 59"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="59"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siebengebirgsstraße"/> + </extension> + </line> + <line value="33. Obergeschoss - Hinterhof, halbrechts"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="33. Obergeschoss - Hinterhof, halbrechts"/> + </extension> + </line> + <city value="Königswinter"/> + <postalCode value="53639"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d8ac97db-249d-4f14-8c9b-861f8b93ca76"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <name> + <use value="official"/> + <family value="Meyer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Meyer"/> + </extension> + </family> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin der Onkologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="d55c6c01-057b-483d-a1eb-2bd1e182551f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="914e46d1-95a2-44c7-b900-5ca4ee80b8d5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c9e9eeb8-e397-4d62-a977-656a18027f90"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="101377508"/> + </identifier> + <display value="Techniker-Krankenkasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/output.json new file mode 100644 index 00000000..018e776f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/output.json @@ -0,0 +1,217 @@ +{ + "resourceType": "Parameters", + "id": "548c78d1-1068-4301-89c4-a2034d055b7f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.011.09" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "f1de6def-c122-4322-a127-7d8d39c4e734", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/bcc076a9-5c85-4e11-899e-81c7a4a65bd2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "bcc076a9-5c85-4e11-899e-81c7a4a65bd2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04773414" + } ], + "text": "Doxycyclin AL 200 T, 10 Tabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Tabletten", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5c9a90b7-9ad3-4fdf-bc95-6f3fe36fcf40", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "757299999" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Krankenhaus", + "telecom": [ { + "system": "phone", + "value": "0309876543" + }, { + "system": "email", + "value": "krankenhaus@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Wegelystraße 3" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "3" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Wegelystraße" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "eb9d1dc1-65a0-44ab-b67e-55db3fffed57", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "159753527" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Mia Meyer", + "family": "Meyer", + "given": [ "Mia" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/output.xml new file mode 100644 index 00000000..b30c98b9 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr6_VerordnungArzt_548c78d1/output.xml @@ -0,0 +1,220 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="548c78d1-1068-4301-89c4-a2034d055b7f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.011.09"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="f1de6def-c122-4322-a127-7d8d39c4e734"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/bcc076a9-5c85-4e11-899e-81c7a4a65bd2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="bcc076a9-5c85-4e11-899e-81c7a4a65bd2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04773414"/> + </coding> + <text value="Doxycyclin AL 200 T, 10 Tabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Tabletten"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5c9a90b7-9ad3-4fdf-bc95-6f3fe36fcf40"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="757299999"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Krankenhaus"/> + <telecom> + <system value="phone"/> + <value value="0309876543"/> + </telecom> + <telecom> + <system value="email"/> + <value value="krankenhaus@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Wegelystraße 3"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="3"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Wegelystraße"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="eb9d1dc1-65a0-44ab-b67e-55db3fffed57"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="159753527"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Mia Meyer"/> + <family value="Meyer"/> + <given value="Mia"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/input.xml new file mode 100644 index 00000000..81ce31ae --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/input.xml @@ -0,0 +1,447 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9ad99a8f-6bce-4ab8-ada1-bb3063566c25"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <attester> + <mode value="legal"/> + <party> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </party> + </attester> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="877e9689-523e-46ca-aa78-8de34a023583"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="895268385"/> + </identifier> + <name> + <use value="official"/> + <family value="Fischer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Fischer"/> + </extension> + </family> + <given value="Alexander"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="03"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Weiterbildungsassistent"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/output.json new file mode 100644 index 00000000..3d555efa --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/output.json @@ -0,0 +1,213 @@ +{ + "resourceType": "Parameters", + "id": "50c3377b-8037-4226-b8e4-320174af6d68", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.004.30" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1c6049a1-efaa-4bad-bce7-785ee970f0a9", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/9211edba-7f4d-4937-961d-17b1868e5c08" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Bitte auf Anwendung schulen" + } ], + "dispenseRequest": { + "quantity": { + "value": 2, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "9211edba-7f4d-4937-961d-17b1868e5c08", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00427833" + } ], + "text": "Viani 50µg/250µg 1 Diskus 60 ED N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Diskus", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "5b0c2083-3b0e-4914-95e1-6aa95973dc80", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e2d55abe-5602-4a19-916d-ddfc7e353b15", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "895268385" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Alexander Fischer", + "family": "Fischer", + "given": [ "Alexander" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/output.xml new file mode 100644 index 00000000..f9ae3a2d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_50c3377b/output.xml @@ -0,0 +1,219 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="50c3377b-8037-4226-b8e4-320174af6d68"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1c6049a1-efaa-4bad-bce7-785ee970f0a9"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/9211edba-7f4d-4937-961d-17b1868e5c08"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="9211edba-7f4d-4937-961d-17b1868e5c08"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5b0c2083-3b0e-4914-95e1-6aa95973dc80"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e2d55abe-5602-4a19-916d-ddfc7e353b15"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="895268385"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Alexander Fischer"/> + <family value="Fischer"/> + <given value="Alexander"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/input.xml new file mode 100644 index 00000000..98e87b22 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/input.xml @@ -0,0 +1,447 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="9ad99a8f-6bce-4ab8-ada1-bb3063566c25"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="70e4e747-a1e6-44cd-b91d-7cc2eef89c0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <attester> + <mode value="legal"/> + <party> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </party> + </attester> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/877e9689-523e-46ca-aa78-8de34a023583"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="877e9689-523e-46ca-aa78-8de34a023583"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b7dd5ddb-b5ad-4b04-af11-6d2a354bce0c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="cb7558e2-0fdf-4107-93f6-07f13f39e067"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="895268385"/> + </identifier> + <name> + <use value="official"/> + <family value="Fischer"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Fischer"/> + </extension> + </family> + <given value="Alexander"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="03"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Weiterbildungsassistent"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="987654423"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/output.json new file mode 100644 index 00000000..d0015232 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/output.json @@ -0,0 +1,213 @@ +{ + "resourceType": "Parameters", + "id": "d70e53f9-9241-44aa-9921-8b203020fc9f", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.004.30" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "58eebd38-980a-4b87-bdb4-62dd77d40d25", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/e352ae4d-cd7c-4cca-85fb-3cb4c36eae84" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Bitte auf Anwendung schulen" + } ], + "dispenseRequest": { + "quantity": { + "value": 2, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "e352ae4d-cd7c-4cca-85fb-3cb4c36eae84", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00427833" + } ], + "text": "Viani 50µg/250µg 1 Diskus 60 ED N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "IHP" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Diskus", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f67a2534-7bb3-400f-bc0a-6ac2b8ee88c1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "02f4707f-3176-45c7-bf97-d27240882b61", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "895268385" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Alexander Fischer", + "family": "Fischer", + "given": [ "Alexander" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/output.xml new file mode 100644 index 00000000..b4721e73 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr7_VerordnungArzt_d70e53f9/output.xml @@ -0,0 +1,219 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="d70e53f9-9241-44aa-9921-8b203020fc9f"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.004.30"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="58eebd38-980a-4b87-bdb4-62dd77d40d25"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/e352ae4d-cd7c-4cca-85fb-3cb4c36eae84"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Bitte auf Anwendung schulen"/> + </note> + <dispenseRequest> + <quantity> + <value value="2"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="e352ae4d-cd7c-4cca-85fb-3cb4c36eae84"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00427833"/> + </coding> + <text value="Viani 50µg/250µg 1 Diskus 60 ED N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="IHP"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Diskus"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f67a2534-7bb3-400f-bc0a-6ac2b8ee88c1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="02f4707f-3176-45c7-bf97-d27240882b61"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="895268385"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Alexander Fischer"/> + <family value="Fischer"/> + <given value="Alexander"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/input.xml new file mode 100644 index 00000000..48b29002 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/input.xml @@ -0,0 +1,397 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ee9d3b92-7667-4dfe-8331-f768b2eaca3c"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/ccb7da6a-dcd7-45d1-926f-061c25222ddd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ccb7da6a-dcd7-45d1-926f-061c25222ddd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="10"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/07aca829-ef92-42a5-9163-778f2b06a82e"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/07aca829-ef92-42a5-9163-778f2b06a82e"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="07aca829-ef92-42a5-9163-778f2b06a82e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01256262"/> + </coding> + <text value="Losartan STADA® 100mg 98 Filmtbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="98"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/output.json new file mode 100644 index 00000000..32e2124a --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/output.json @@ -0,0 +1,217 @@ +{ + "resourceType": "Parameters", + "id": "42486c99-638e-421d-adb1-ae11bf44f00b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.012.06" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "5890193d-fa3d-42bf-ad38-ee305a286972", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4a7d3061-b3c8-43c3-9f1f-e924a82a8aa3" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4a7d3061-b3c8-43c3-9f1f-e924a82a8aa3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01256262" + } ], + "text": "Losartan STADA® 100mg 98 Filmtbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "98" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "20b3c883-9090-4c9c-9a42-7f7340419e92", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "51ac5bd2-4467-44da-85ea-eeb1a2fe7a59", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/output.xml new file mode 100644 index 00000000..0257ad31 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_42486c99/output.xml @@ -0,0 +1,221 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="42486c99-638e-421d-adb1-ae11bf44f00b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="5890193d-fa3d-42bf-ad38-ee305a286972"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4a7d3061-b3c8-43c3-9f1f-e924a82a8aa3"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4a7d3061-b3c8-43c3-9f1f-e924a82a8aa3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01256262"/> + </coding> + <text value="Losartan STADA® 100mg 98 Filmtbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="98"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="20b3c883-9090-4c9c-9a42-7f7340419e92"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="51ac5bd2-4467-44da-85ea-eeb1a2fe7a59"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/input.xml new file mode 100644 index 00000000..ed0f8757 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/input.xml @@ -0,0 +1,397 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="ee9d3b92-7667-4dfe-8331-f768b2eaca3c"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/ccb7da6a-dcd7-45d1-926f-061c25222ddd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="ccb7da6a-dcd7-45d1-926f-061c25222ddd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="10"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/07aca829-ef92-42a5-9163-778f2b06a82e"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/07aca829-ef92-42a5-9163-778f2b06a82e"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="07aca829-ef92-42a5-9163-778f2b06a82e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cc81b7f8-c01d-446b-996b-2302abac9aa4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01256262"/> + </coding> + <text value="Losartan STADA® 100mg 98 Filmtbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="98"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin mit dem Schwerpunkt Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/output.json new file mode 100644 index 00000000..aaaabcde --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/output.json @@ -0,0 +1,217 @@ +{ + "resourceType": "Parameters", + "id": "b6596f2e-76e2-422e-97f7-24f98b27ac4d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.012.06" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "d24bd5d7-ce88-4f53-acaa-c971545494c2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/4f63b2d9-0465-4317-bb3a-77d2ba98add8" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "4f63b2d9-0465-4317-bb3a-77d2ba98add8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "01256262" + } ], + "text": "Losartan STADA® 100mg 98 Filmtbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "98" + } ], + "unit": "St", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f5667b07-c382-49f8-b741-90c9310aaae3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "1a38b313-c8c2-43fd-b426-ad533b0f2196", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/output.xml new file mode 100644 index 00000000..dc654de7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Nr8_VerordnungArzt_b6596f2e/output.xml @@ -0,0 +1,221 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="b6596f2e-76e2-422e-97f7-24f98b27ac4d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.012.06"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="d24bd5d7-ce88-4f53-acaa-c971545494c2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/4f63b2d9-0465-4317-bb3a-77d2ba98add8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="4f63b2d9-0465-4317-bb3a-77d2ba98add8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="01256262"/> + </coding> + <text value="Losartan STADA® 100mg 98 Filmtbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="98"/> + </extension> + <unit value="St"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f5667b07-c382-49f8-b741-90c9310aaae3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="1a38b313-c8c2-43fd-b426-ad533b0f2196"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/input.xml new file mode 100644 index 00000000..ce99c38f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/input.xml @@ -0,0 +1,428 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5a3458b0-8364-4682-96e2-b262b2ab16eb"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/72893c05-dd21-4dac-b6aa-025ccff54345"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="72893c05-dd21-4dac-b6aa-025ccff54345"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/9519cacf-7fe2-4193-8c2e-0c2c615436af"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="FOR_PractitionerRole"/> + </coding> + </code> + <entry> + <!-- Referenz auf ASV-Kennzeichen(PractitionerRole) --> + <reference value="PractitionerRole/34329d70-ccb5-43ae-b551-e5368022b226"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/9519cacf-7fe2-4193-8c2e-0c2c615436af"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9519cacf-7fe2-4193-8c2e-0c2c615436af"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2023-07-27"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/af2c41be-8e6b-439d-ae65-2851b520a6f5"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/af2c41be-8e6b-439d-ae65-2851b520a6f5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="af2c41be-8e6b-439d-ae65-2851b520a6f5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/PractitionerRole/34329d70-ccb5-43ae-b551-e5368022b226"/> + <resource> + <PractitionerRole xmlns="http://hl7.org/fhir"> + <id value="34329d70-ccb5-43ae-b551-e5368022b226"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_PractitionerRole|1.1.0"/> + </meta> + <practitioner> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </practitioner> + <organization> + <identifier> + <system value="http://fhir.de/NamingSystem/asv/teamnummer"/> + <value value="003456788"/> + </identifier> + </organization> + </PractitionerRole> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/output.json new file mode 100644 index 00000000..48791bf6 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "993f87d3-0258-442f-851f-7c9e53d2ec87", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.005.27" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3dddb8ef-f0de-4369-8686-a3bafec9f790", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a4027d87-df36-4704-88c3-c2a707040c40" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "dosageInstruction": [ { + "text": "bis zu 4mal täglich je 20-40 Tropfen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a4027d87-df36-4704-88c3-c2a707040c40", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03507952" + } ], + "text": "Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TEI" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "24310bcf-e0ac-460e-8cd2-0999167ddf2b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "e733b6e6-098f-4ba0-a782-927c6626349d", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/output.xml new file mode 100644 index 00000000..79aecd74 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_993f87d3/output.xml @@ -0,0 +1,217 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="993f87d3-0258-442f-851f-7c9e53d2ec87"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3dddb8ef-f0de-4369-8686-a3bafec9f790"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a4027d87-df36-4704-88c3-c2a707040c40"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <dosageInstruction> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a4027d87-df36-4704-88c3-c2a707040c40"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="24310bcf-e0ac-460e-8cd2-0999167ddf2b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="e733b6e6-098f-4ba0-a782-927c6626349d"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/input.xml new file mode 100644 index 00000000..ad94fe2c --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/input.xml @@ -0,0 +1,428 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5a3458b0-8364-4682-96e2-b262b2ab16eb"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/72893c05-dd21-4dac-b6aa-025ccff54345"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="72893c05-dd21-4dac-b6aa-025ccff54345"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/9519cacf-7fe2-4193-8c2e-0c2c615436af"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="FOR_PractitionerRole"/> + </coding> + </code> + <entry> + <!-- Referenz auf ASV-Kennzeichen(PractitionerRole) --> + <reference value="PractitionerRole/34329d70-ccb5-43ae-b551-e5368022b226"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/9519cacf-7fe2-4193-8c2e-0c2c615436af"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="9519cacf-7fe2-4193-8c2e-0c2c615436af"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2024-11-27"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/af2c41be-8e6b-439d-ae65-2851b520a6f5"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/af2c41be-8e6b-439d-ae65-2851b520a6f5"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="af2c41be-8e6b-439d-ae65-2851b520a6f5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost - Die Gesundheitskasse"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/PractitionerRole/34329d70-ccb5-43ae-b551-e5368022b226"/> + <resource> + <PractitionerRole xmlns="http://hl7.org/fhir"> + <id value="34329d70-ccb5-43ae-b551-e5368022b226"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_PractitionerRole|1.1.0"/> + </meta> + <practitioner> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </practitioner> + <organization> + <identifier> + <system value="http://fhir.de/NamingSystem/asv/teamnummer"/> + <value value="003456788"/> + </identifier> + </organization> + </PractitionerRole> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/output.json new file mode 100644 index 00000000..0268ff17 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "e9c5bdef-dd34-41f2-906c-679c40cba00b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.005.27" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "7292b94a-21f5-49a7-887d-6c6d10560c9b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/64760744-e7b5-4ad3-92d7-f160701f6e0d" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "dosageInstruction": [ { + "text": "bis zu 4mal täglich je 20-40 Tropfen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "64760744-e7b5-4ad3-92d7-f160701f6e0d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03507952" + } ], + "text": "Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TEI" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "8fd314f6-6352-4e2b-9562-ca3948c6da73", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "ee29d00a-00e8-40ea-b971-4668880c3138", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/output.xml new file mode 100644 index 00000000..aa32126e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_Unfall_VerordnungArzt_e9c5bdef/output.xml @@ -0,0 +1,217 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="e9c5bdef-dd34-41f2-906c-679c40cba00b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.005.27"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="7292b94a-21f5-49a7-887d-6c6d10560c9b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/64760744-e7b5-4ad3-92d7-f160701f6e0d"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <dosageInstruction> + <text value="bis zu 4mal täglich je 20-40 Tropfen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="64760744-e7b5-4ad3-92d7-f160701f6e0d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03507952"/> + </coding> + <text value="Novaminsulfon 500 mg Lichtenstein 100 ml Tropf. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TEI"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="8fd314f6-6352-4e2b-9562-ca3948c6da73"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="ee29d00a-00e8-40ea-b971-4668880c3138"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/input.xml new file mode 100644 index 00000000..654b92d7 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6d5162b2-abc9-4c0c-9c46-4deb3b64edd7"/> + <meta> + <lastUpdated value="2023-07-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <type value="document"/> + <timestamp value="2023-07-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2023-07-27T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2023-07-27"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/output.json new file mode 100644 index 00000000..d206b6fb --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/output.json @@ -0,0 +1,210 @@ +{ + "resourceType": "Parameters", + "id": "6c2315ed-6f39-49eb-94c3-2c023cbd1d1c", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.21" + } + }, { + "name": "authoredOn", + "valueDate": "2023-07-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "a008f09e-1096-45fb-9cbd-206d91b5ad7d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/acabd189-33f8-4b58-a885-ff9510db16be" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-27", + "note": [ { + "text": "Patient erneut auf Anwendung der Schmelztabletten hinweisen" + } ], + "dosageInstruction": [ { + "text": "1x täglich" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "acabd189-33f8-4b58-a885-ff9510db16be", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08850519" + } ], + "text": "Olanzapin Heumann 20mg 70 Schmelztbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SMT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "70" + } ], + "unit": "Stück", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "89bd866a-c359-43c1-bace-f7b94e3f67e3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "9909894e-1b88-4003-bb82-c7108df73915", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/output.xml new file mode 100644 index 00000000..a936d6d4 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_6c2315ed/output.xml @@ -0,0 +1,214 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="6c2315ed-6f39-49eb-94c3-2c023cbd1d1c"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2023-07-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a008f09e-1096-45fb-9cbd-206d91b5ad7d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/acabd189-33f8-4b58-a885-ff9510db16be"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-27"/> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="acabd189-33f8-4b58-a885-ff9510db16be"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="89bd866a-c359-43c1-bace-f7b94e3f67e3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="9909894e-1b88-4003-bb82-c7108df73915"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/input.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/input.xml new file mode 100644 index 00000000..cac9c04e --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6d5162b2-abc9-4c0c-9c46-4deb3b64edd7"/> + <meta> + <lastUpdated value="2024-11-27T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <type value="document"/> + <timestamp value="2024-11-27T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2024-11-27T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/410/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2024-11-27"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/log.txt b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/output.json b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/output.json new file mode 100644 index 00000000..e0f88710 --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/output.json @@ -0,0 +1,210 @@ +{ + "resourceType": "Parameters", + "id": "c3a1abbe-a6f6-4a8d-8aa4-469ee4157fe3", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.21" + } + }, { + "name": "authoredOn", + "valueDate": "2024-11-27" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "09b48e2f-65ef-4964-9dc2-fdc8c16128b1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/c417363e-a7cd-443f-8e02-9d74d575bbd0" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-11-27", + "note": [ { + "text": "Patient erneut auf Anwendung der Schmelztabletten hinweisen" + } ], + "dosageInstruction": [ { + "text": "1x täglich" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "c417363e-a7cd-443f-8e02-9d74d575bbd0", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08850519" + } ], + "text": "Olanzapin Heumann 20mg 70 Schmelztbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SMT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "70" + } ], + "unit": "Stück", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "b2bfd8a2-5503-4a2d-9078-c33a3be0aca1", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "88b6286b-c4a3-4256-8945-40df5e6892c6", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/output.xml b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/output.xml new file mode 100644 index 00000000..db116b2d --- /dev/null +++ b/ePA-eML-Examples/ExampleRepoTestData/valid/medicationPzn/PZN_aut_idem_VerordnungArzt_c3a1abbe/output.xml @@ -0,0 +1,214 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="c3a1abbe-a6f6-4a8d-8aa4-469ee4157fe3"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-11-27"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="09b48e2f-65ef-4964-9dc2-fdc8c16128b1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/c417363e-a7cd-443f-8e02-9d74d575bbd0"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-11-27"/> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="c417363e-a7cd-443f-8e02-9d74d575bbd0"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="b2bfd8a2-5503-4a2d-9078-c33a3be0aca1"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="88b6286b-c4a3-4256-8945-40df5e6892c6"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/transformation_protocol.txt b/ePA-eML-Examples/ExampleTestData/transformation_protocol.txt new file mode 100644 index 00000000..91376f3e --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/transformation_protocol.txt @@ -0,0 +1,40 @@ +Filename: kbv_1_1_0/bundle/dac55c3e-43cc-4109-ac4c-d6af9f83e868.xml + transform to valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003 +Filename: kbv_1_1_0/bundle/Beispiel_1.xml + transform to valid/medicationPzn/Beispiel_1_f12fa769 +Filename: kbv_1_1_0/bundle/Beispiel_2.xml + transform to valid/medicationPzn/Beispiel_2_2b6860ab +Filename: kbv_1_1_0/bundle/Beispiel_3.xml + transform to valid/medicationPzn/Beispiel_3_fc33c82b +Filename: kbv_1_1_0/bundle/Beispiel_4.xml + transform to valid/medicationPzn/Beispiel_4_cd2e731a +Filename: kbv_1_1_0/medication_compounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5.xml + transform to valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99 +Filename: kbv_1_1_0/medication_compounding/76e83871-27f6-4625-9fb3-cadf6a13059f.xml + transform to valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350 +Filename: kbv_1_1_0/organization/cf042e44-086a-4d51-9c77-172f9a972e3b.xml + transform to valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db +Filename: kbv_1_1_0/organization/cf042e44-086a-4d51-9c77-172f9a972e4b.xml + transform to valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973 +Filename: kbv_1_1_0/organization/cf042e44-086a-4d51-9c77-172f9a972e5b.xml + transform to valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383 +Filename: kbv_1_1_0/organization/cf042e44-086a-4d51-9c77-172f9a972e6b.xml + transform to valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9 +Filename: kbv_1_1_0/medication_ingredient/86fa62c7-06a0-418e-ba26-e99baa053c07.xml + transform to valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891 +Filename: kbv_1_1_0/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a.xml + transform to valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af +Filename: kbv_1_1_0/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a.xml + transform to valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef +Filename: kbv_1_1_0/medication_freetext/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920.xml + transform to valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b +Filename: kbv_1_1_0/medicationRequest/c0312f32-4f6c-49b3-b3f4-21506785d583.xml + transform to valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74 +Filename: kbv_1_1_0/medication_pzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4.xml + transform to valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f +Filename: erp_workflow_1_2/medicationdispense/f64fd7b4-8720-4986-a3c3-11892afa2267.xml + transform to valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21 +Filename: erp_workflow_1_2/medicationdispense/26fbffa8-b0df-4074-b2cf-143269aff176.xml + transform to valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5 +Filename: erp_workflow_1_2/medicationdispense/Example-MedicationDispense_1_4.xml + transform to valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7 diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/input.xml new file mode 100644 index 00000000..f1053d7b --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/input.xml @@ -0,0 +1,69 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="5cd916fc-2ae2-4148-b016-911ec5f4c0a5"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/output.json new file mode 100644 index 00000000..340436d5 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/output.json @@ -0,0 +1,120 @@ +{ + "resourceType": "Medication", + "id": "858e8f99-1cc1-46a6-bcf1-f7a418b69f14", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Lösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Salicylsäure" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "2-propanol 70 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/output.xml new file mode 100644 index 00000000..249f3c01 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/5cd916fc-2ae2-4148-b016-911ec5f4c0a5_858e8f99/output.xml @@ -0,0 +1,107 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="858e8f99-1cc1-46a6-bcf1-f7a418b69f14"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/input.xml new file mode 100644 index 00000000..e5b4a597 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/input.xml @@ -0,0 +1,69 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="76e83871-27f6-4625-9fb3-cadf6a13059f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="373873005:860781008=362943005"/> + <display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="rezeptur"/> + </coding> + </code> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount"> + <valueString value="Ad 100 g"/> + </extension> + </strength> + </ingredient> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/output.json new file mode 100644 index 00000000..cc217ea9 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/output.json @@ -0,0 +1,120 @@ +{ + "resourceType": "Medication", + "id": "8156e350-e6f6-498c-a1b8-3dfb637752f8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "form": { + "text": "Lösung" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "ml" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "text": "Salicylsäure" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "g", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + }, { + "itemCodeableConcept": { + "text": "2-propanol 70 %" + }, + "strength": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension", + "valueString": "Ad 100 g" + } ], + "numerator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "_value": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/output.xml new file mode 100644 index 00000000..0e118e20 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationCompounding/76e83871-27f6-4625-9fb3-cadf6a13059f_8156e350/output.xml @@ -0,0 +1,107 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="8156e350-e6f6-498c-a1b8-3dfb637752f8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <form> + <text value="Lösung"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="ml"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <text value="Salicylsäure"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="g"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> + <ingredient> + <itemCodeableConcept> + <text value="2-propanol 70 %"/> + </itemCodeableConcept> + <strength> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension"> + <valueString value="Ad 100 g"/> + </extension> + <numerator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </value> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/input.xml new file mode 100644 index 00000000..5f2d6e3b --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/input.xml @@ -0,0 +1,77 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="26fbffa8-b0df-4074-b2cf-143269aff176"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.4"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="SumatripanMedication"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.4"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"> + <valueString value="20 St."/> + </extension> + <value value="20"/> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.033.491.280.78"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#SumatripanMedication"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567890"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2022-02-28"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/log.txt new file mode 100644 index 00000000..3bbc8cf2 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/fc4434b8-d666-4a19-ae92-3c8b72feccd6*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/fc4434b8-d666-4a19-ae92-3c8b72feccd6*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/fc4434b8-d666-4a19-ae92-3c8b72feccd6*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/output.json new file mode 100644 index 00000000..5b5bf546 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "eacd41b5-e5ae-422a-adc9-e5dfcb7f2af1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "fc4434b8-d666-4a19-ae92-3c8b72feccd6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.033.491.280.78" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/497eacbb-947e-4b67-9cab-6bddd9612a09" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X234567890" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/c069552a-8659-4347-bb0b-f53f7feb837f" + } + } ], + "whenHandedOver": "2022-02-28", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "497eacbb-947e-4b67-9cab-6bddd9612a09", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "value": 20, + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "c069552a-8659-4347-bb0b-f53f7feb837f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Milton Yermouth" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/output.xml new file mode 100644 index 00000000..a3610214 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/26fbffa8-b0df-4074-b2cf-143269aff176_eacd41b5/output.xml @@ -0,0 +1,121 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="eacd41b5-e5ae-422a-adc9-e5dfcb7f2af1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="fc4434b8-d666-4a19-ae92-3c8b72feccd6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.033.491.280.78"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/497eacbb-947e-4b67-9cab-6bddd9612a09"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567890"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/c069552a-8659-4347-bb0b-f53f7feb837f"/> + </actor> + </performer> + <whenHandedOver value="2022-02-28"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="497eacbb-947e-4b67-9cab-6bddd9612a09"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <value value="20"/> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="c069552a-8659-4347-bb0b-f53f7feb837f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Milton Yermouth"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/input.xml new file mode 100644 index 00000000..3669ac59 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/input.xml @@ -0,0 +1,77 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="3465270a-11e7-4bbf-ae53-378f9cc52747"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.4"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="SumatripanMedication"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.4"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension"> + <valueString value="20 St."/> + </extension> + <value value="20"/> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.033.491.280.78"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#SumatripanMedication"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567890"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2022-02-28"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/log.txt new file mode 100644 index 00000000..5d1c2b82 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/17020304-5dc7-491d-b884-6ac31521dd1e*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/17020304-5dc7-491d-b884-6ac31521dd1e*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/17020304-5dc7-491d-b884-6ac31521dd1e*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/output.json new file mode 100644 index 00000000..d2ab20f2 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "95ab7ff7-5bf8-4b2e-8ee1-28ef3cdc0779", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "17020304-5dc7-491d-b884-6ac31521dd1e", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.033.491.280.78" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/13a7cdf5-795f-4153-bedb-a96b0dc10f76" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X234567890" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/7659f3b3-0728-45e9-97fe-c09bc4cb546e" + } + } ], + "whenHandedOver": "2022-02-28", + "dosageInstruction": [ { + "text": "1-0-1-0" + } ] + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "13a7cdf5-795f-4153-bedb-a96b0dc10f76", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "06313728" + } ], + "text": "Sumatriptan-1a Pharma 100 mg Tabletten" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "value": 20, + "unit": "St" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "7659f3b3-0728-45e9-97fe-c09bc4cb546e", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-abc-1234567890" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Dwayne Pipe" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/output.xml new file mode 100644 index 00000000..ff4bea03 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/Example-MedicationDispense_1_4_95ab7ff7/output.xml @@ -0,0 +1,121 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="95ab7ff7-5bf8-4b2e-8ee1-28ef3cdc0779"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="17020304-5dc7-491d-b884-6ac31521dd1e"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.033.491.280.78"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/13a7cdf5-795f-4153-bedb-a96b0dc10f76"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X234567890"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/7659f3b3-0728-45e9-97fe-c09bc4cb546e"/> + </actor> + </performer> + <whenHandedOver value="2022-02-28"/> + <dosageInstruction> + <text value="1-0-1-0"/> + </dosageInstruction> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="13a7cdf5-795f-4153-bedb-a96b0dc10f76"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="06313728"/> + </coding> + <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <value value="20"/> + <unit value="St"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="7659f3b3-0728-45e9-97fe-c09bc4cb546e"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-abc-1234567890"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Dwayne Pipe"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/input.xml new file mode 100644 index 00000000..2fd55595 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/input.xml @@ -0,0 +1,83 @@ +<MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="f64fd7b4-8720-4986-a3c3-11892afa2267"/> + <meta> + <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.2"/> + </meta> + <contained> + <Medication xmlns="http://hl7.org/fhir"> + <id value="81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="84264572"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </contained> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.533.49"/> + </identifier> + <status value="completed"/> + <medicationReference> + <reference value="#81a3a319-f7a4-42d1-bd10-d929186b36b7"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> +</MedicationDispense> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/log.txt new file mode 100644 index 00000000..0a5c6246 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=10,row=17,locationString=Parameters.parameter[0].part[0].resource/*MedicationDispense/fcd2a4a7-dd86-4aaf-8a7a-8173fcb39739*/.identifier[0],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense|1.1.0-rc1,severity=information,sliceMessages=[Parameters.parameter[0].part[0].resource/*MedicationDispense/fcd2a4a7-dd86-4aaf-8a7a-8173fcb39739*/.identifier[0]: Does not match slice 'RxOriginatorProcessIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier').exists()), Parameters.parameter[0].part[0].resource/*MedicationDispense/fcd2a4a7-dd86-4aaf-8a7a-8173fcb39739*/.identifier[0]: Does not match slice 'EPADispensationIdentifier' (discriminator: $this.where(system = 'https://gematik.de/fhir/epa-medication/sid/dispensation-identifier').exists())]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/output.json new file mode 100644 index 00000000..14b52b1f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/output.json @@ -0,0 +1,118 @@ +{ + "resourceType": "Parameters", + "id": "0f29ab21-4209-4182-9120-37ea94816851", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters" ] + }, + "parameter": [ { + "name": "dispensation", + "part": [ { + "name": "medicationDispense", + "resource": { + "resourceType": "MedicationDispense", + "id": "fcd2a4a7-dd86-4aaf-8a7a-8173fcb39739", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "200.000.002.096.533.49" + } ], + "status": "completed", + "category": { + "coding": [ { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS", + "code": "prescription", + "display": "prescription dispense" + } ] + }, + "medicationReference": { + "reference": "Medication/62398c3b-c2c2-440c-83c0-ceaf9523be3b" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "X110465770" + } + }, + "performer": [ { + "actor": { + "reference": "Organization/fd6c8212-b461-471a-9fa5-5f75f50eee53" + } + } ], + "whenHandedOver": "2024-02-08" + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "62398c3b-c2c2-440c-83c0-ceaf9523be3b", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "84264572" + } ], + "text": "Schmerzmittel" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + } ] + }, { + "name": "performerInstitution", + "resource": { + "resourceType": "Organization", + "id": "fd6c8212-b461-471a-9fa5-5f75f50eee53", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "3-SMC-B-Testkarte-883110000116873" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Justin Case" + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/output.xml new file mode 100644 index 00000000..edd17442 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationDispense/f64fd7b4-8720-4986-a3c3-11892afa2267_0f29ab21/output.xml @@ -0,0 +1,120 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="0f29ab21-4209-4182-9120-37ea94816851"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-dispensation-input-parameters"/> + </meta> + <parameter> + <name value="dispensation"/> + <part> + <name value="medicationDispense"/> + <resource> + <MedicationDispense xmlns="http://hl7.org/fhir"> + <id value="fcd2a4a7-dd86-4aaf-8a7a-8173fcb39739"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="200.000.002.096.533.49"/> + </identifier> + <status value="completed"/> + <category> + <coding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/EPAMedicationDispenseCategoryCS"/> + <code value="prescription"/> + <display value="prescription dispense"/> + </coding> + </category> + <medicationReference> + <reference value="Medication/62398c3b-c2c2-440c-83c0-ceaf9523be3b"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110465770"/> + </identifier> + </subject> + <performer> + <actor> + <reference value="Organization/fd6c8212-b461-471a-9fa5-5f75f50eee53"/> + </actor> + </performer> + <whenHandedOver value="2024-02-08"/> + </MedicationDispense> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="62398c3b-c2c2-440c-83c0-ceaf9523be3b"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="84264572"/> + </coding> + <text value="Schmerzmittel"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + </parameter> + <parameter> + <name value="performerInstitution"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="fd6c8212-b461-471a-9fa5-5f75f50eee53"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="3-SMC-B-Testkarte-883110000116873"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Justin Case"/> + </Organization> + </resource> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/input.xml new file mode 100644 index 00000000..0d4842fd --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/input.xml @@ -0,0 +1,22 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="freitext"/> + </coding> + <text value="Metformin 850mg Tabletten N3"/> + </code> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/output.json new file mode 100644 index 00000000..5aea15d0 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/output.json @@ -0,0 +1,20 @@ +{ + "resourceType": "Medication", + "id": "03f2023b-7f44-4cf3-af1a-daa59c11d390", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + } ], + "code": { + "text": "Metformin 850mg Tabletten N3" + } +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/output.xml new file mode 100644 index 00000000..c924cdf4 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationFreeText/0d93504e-c6a7-47c1-8ad5-b0c5cf1b8920_03f2023b/output.xml @@ -0,0 +1,18 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="03f2023b-7f44-4cf3-af1a-daa59c11d390"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <code> + <text value="Metformin 850mg Tabletten N3"/> + </code> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/input.xml new file mode 100644 index 00000000..c11d2eb4 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/input.xml @@ -0,0 +1,56 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="86fa62c7-06a0-418e-ba26-e99baa053c07"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/> + <code value="wirkstoff"/> + </coding> + </code> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </strength> + </ingredient> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/output.json new file mode 100644 index 00000000..01e0abfc --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/output.json @@ -0,0 +1,77 @@ +{ + "resourceType": "Medication", + "id": "7f3c3891-531d-4739-b183-d9cffdef77e6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "form": { + "text": "Tabletten" + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "100" + } ], + "unit": "Stück" + }, + "denominator": { + "value": 1 + } + }, + "ingredient": [ { + "itemCodeableConcept": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ask", + "code": "22686" + } ], + "text": "Ramipril" + }, + "strength": { + "numerator": { + "value": 5, + "unit": "mg", + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + }, + "denominator": { + "value": 1, + "_system": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + }, + "_code": { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } ] + } + } + } + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/output.xml new file mode 100644 index 00000000..9c3a7fd9 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationIngredient/86fa62c7-06a0-418e-ba26-e99baa053c07_7f3c3891/output.xml @@ -0,0 +1,70 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="7f3c3891-531d-4739-b183-d9cffdef77e6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <form> + <text value="Tabletten"/> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="100"/> + </extension> + <unit value="Stück"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <ingredient> + <itemCodeableConcept> + <coding> + <system value="http://fhir.de/CodeSystem/ask"/> + <code value="22686"/> + </coding> + <text value="Ramipril"/> + </itemCodeableConcept> + <strength> + <numerator> + <value value="5"/> + <unit value="mg"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </numerator> + <denominator> + <value value="1"/> + <system> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </system> + <code> + <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> + <valueCode value="unknown"/> + </extension> + </code> + </denominator> + </strength> + </ingredient> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/input.xml new file mode 100644 index 00000000..e6e9fe0a --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/input.xml @@ -0,0 +1,384 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="44420ed9-7388-4be5-acc5-9c124fad9f34"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="false"/> + </extension> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + <name> + <use value="official"/> + <family value="Königsstein"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Königsstein"/> + </extension> + </family> + <given value="Ludger"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="bc329f24-3d65-4286-bf06-b54dd6cad655"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <name> + <use value="official"/> + <family value="Freiherr von Müller"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Müller"/> + </extension> + </family> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Innere Medizin: Kardiologie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="05"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="17"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="5"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="109719018"/> + </identifier> + <display value="AOK Nordost"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/output.json new file mode 100644 index 00000000..53f3792c --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/output.json @@ -0,0 +1,203 @@ +{ + "resourceType": "Parameters", + "id": "f12fa769-5cc6-4b3e-b794-9dacfc76b73a", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.006.24" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "1284b3a6-52aa-4eb4-b3ca-1c56202f3248", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/a907a18e-e16c-4dfb-a80c-bb778ee300d8" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "a907a18e-e16c-4dfb-a80c-bb778ee300d8", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "00814665" + } ], + "text": "Januvia® 50 mg 28 Filmtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "71f52e98-6cb1-4fcf-96c8-c63fdd8781df", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "721111100" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "a7ffbb57-fb3d-45be-b77c-c1a16dc36d39", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "123456628" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Paul Freiherr von Müller", + "family": "Freiherr von Müller", + "given": [ "Paul" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/output.xml new file mode 100644 index 00000000..c6535f43 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_1_f12fa769/output.xml @@ -0,0 +1,208 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="f12fa769-5cc6-4b3e-b794-9dacfc76b73a"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.006.24"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="1284b3a6-52aa-4eb4-b3ca-1c56202f3248"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/a907a18e-e16c-4dfb-a80c-bb778ee300d8"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="a907a18e-e16c-4dfb-a80c-bb778ee300d8"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="00814665"/> + </coding> + <text value="Januvia® 50 mg 28 Filmtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="71f52e98-6cb1-4fcf-96c8-c63fdd8781df"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="721111100"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="a7ffbb57-fb3d-45be-b77c-c1a16dc36d39"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="123456628"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Paul Freiherr von Müller"/> + <family value="Freiherr von Müller"/> + <given value="Paul"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/input.xml new file mode 100644 index 00000000..2a6cb1e2 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/input.xml @@ -0,0 +1,396 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="6d5162b2-abc9-4c0c-9c46-4deb3b64edd7"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="2edc3279-e54d-43b9-8590-4007f1b20fbd"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0587787f-3f1b-4578-a412-ce5bae8215b9"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + </requester> + <insurance> + <reference value="Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + </insurance> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="03758a20-5f15-4d10-a0ea-c8a594cea651"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c4e1a54-8a42-4d3d-a12c-0bbf2db48570"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <name> + <use value="official"/> + <family value="Becker"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Becker"/> + </extension> + </family> + <given value="Emilia"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Psychiatrie und Psychotherapie"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="4ad4ae52-bd62-4cbd-bae9-7f7d6ece3fd2"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="69b3bbb6-2d37-4676-baf1-af97ba2ba4ad"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="AOK Rheinland/Hamburg"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/output.json new file mode 100644 index 00000000..faba3f05 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/output.json @@ -0,0 +1,210 @@ +{ + "resourceType": "Parameters", + "id": "2b6860ab-aded-4421-839a-a43da53e19b1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.21" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "0472ea6f-c6de-42b3-b1cf-6f9e2bd81f6d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/fcab27f1-9e6f-4c10-a9e2-921641b7caf1" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Patient erneut auf Anwendung der Schmelztabletten hinweisen" + } ], + "dosageInstruction": [ { + "text": "1x täglich" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "fcab27f1-9e6f-4c10-a9e2-921641b7caf1", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N3" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "08850519" + } ], + "text": "Olanzapin Heumann 20mg 70 Schmelztbl. N3" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "SMT" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "70" + } ], + "unit": "Stück", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "73e991f1-ebdb-4512-a7ac-0edce5cd9e08", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "723333300" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Praxis für Psychiatrie und Psychotherapie", + "telecom": [ { + "system": "phone", + "value": "030369258147" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d9e9eed5-469d-4d17-925a-69d1a05a526b", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "582369858" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Emilia Becker", + "family": "Becker", + "given": [ "Emilia" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/output.xml new file mode 100644 index 00000000..da18263c --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_2_2b6860ab/output.xml @@ -0,0 +1,214 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="2b6860ab-aded-4421-839a-a43da53e19b1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.21"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="0472ea6f-c6de-42b3-b1cf-6f9e2bd81f6d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/fcab27f1-9e6f-4c10-a9e2-921641b7caf1"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Patient erneut auf Anwendung der Schmelztabletten hinweisen"/> + </note> + <dosageInstruction> + <text value="1x täglich"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="fcab27f1-9e6f-4c10-a9e2-921641b7caf1"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N3"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="08850519"/> + </coding> + <text value="Olanzapin Heumann 20mg 70 Schmelztbl. N3"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="SMT"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="70"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="73e991f1-ebdb-4512-a7ac-0edce5cd9e08"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="723333300"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Praxis für Psychiatrie und Psychotherapie"/> + <telecom> + <system value="phone"/> + <value value="030369258147"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d9e9eed5-469d-4d17-925a-69d1a05a526b"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="582369858"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Emilia Becker"/> + <family value="Becker"/> + <given value="Emilia"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/input.xml new file mode 100644 index 00000000..99796153 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/input.xml @@ -0,0 +1,406 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="328ad940-3fff-11ed-b878-0242ac120002"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.22"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="6ac6d8bc-3acd-4e31-ad9b-442fc343c6c0"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="000abe24-f690-481e-9a9f-1cd0eb434e2f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + </medicationReference> + <subject> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + </requester> + <insurance> + <reference value="Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="47076fb4-dc5c-4f75-85f6-b200033b3280"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03879429"/> + </coding> + <text value="Beloc-Zok® mite 47,5 mg, 30 Retardtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="30"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="93866fdc-3e50-4902-a7e9-891b54737b5e"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/pkv/kvid-10"/> + <value value="P123464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Privati"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Privati"/> + </extension> + </family> + <given value="Paula"/> + </name> + <birthDate value="1935-06-22"/> + <address> + <type value="both"/> + <line value="Blumenweg"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Blumenweg"/> + </extension> + </line> + <city value="Esens"/> + <postalCode value="26427"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="667ffd79-42a3-4002-b7ca-6b9098f20ccb"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-748382202"/> + </identifier> + <name> + <use value="official"/> + <family value="Schneider"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schneider"/> + </extension> + </family> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Fachärztin für Innere Medizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="5d3f4ac0-2b44-4d48-b363-e63efa72973b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-749999999"/> + </identifier> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="1b89236c-ab14-4e92-937e-5af0b59d0cd4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="PKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/93866fdc-3e50-4902-a7e9-891b54737b5e"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="123456789"/> + </identifier> + <display value="Allianz Private Krankenversicherung"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/output.json new file mode 100644 index 00000000..ca167469 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/output.json @@ -0,0 +1,220 @@ +{ + "resourceType": "Parameters", + "id": "fc33c82b-1f1c-41a1-8d3f-55dbb1ddf636", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.007.22" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "bfeabcd8-2d7b-44d4-93cd-f7a7b3637caa", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/daf1739f-83f2-4df8-9f39-a958c7cceff2" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "dosageInstruction": [ { + "text": "1-0-0-0" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "daf1739f-83f2-4df8-9f39-a958c7cceff2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "03879429" + } ], + "text": "Beloc-Zok® mite 47,5 mg, 30 Retardtabletten N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "RET" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "30" + } ], + "unit": "Stück", + "system": "http://unitsofmeasure.org", + "code": "{tbl}" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "2f748563-5337-451a-83c7-ed04a19946f3", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "999999900" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-749999999" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "MVZ", + "telecom": [ { + "system": "phone", + "value": "0301234567" + }, { + "system": "fax", + "value": "030123456789" + }, { + "system": "email", + "value": "mvz@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "0c7f7e79-1110-4f82-ac22-5850eb1e1783", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "999999900" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-748382202" + } ], + "name": [ { + "use": "official", + "text": "Dr. med. Emma Schneider", + "family": "Schneider", + "given": [ "Emma" ], + "prefix": [ "Dr. med." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/output.xml new file mode 100644 index 00000000..4ef660c6 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_3_fc33c82b/output.xml @@ -0,0 +1,224 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="fc33c82b-1f1c-41a1-8d3f-55dbb1ddf636"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.007.22"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="bfeabcd8-2d7b-44d4-93cd-f7a7b3637caa"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/daf1739f-83f2-4df8-9f39-a958c7cceff2"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <dosageInstruction> + <text value="1-0-0-0"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="daf1739f-83f2-4df8-9f39-a958c7cceff2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="03879429"/> + </coding> + <text value="Beloc-Zok® mite 47,5 mg, 30 Retardtabletten N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="RET"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="30"/> + </extension> + <unit value="Stück"/> + <system value="http://unitsofmeasure.org"/> + <code value="{tbl}"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2f748563-5337-451a-83c7-ed04a19946f3"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-749999999"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="MVZ"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <telecom> + <system value="fax"/> + <value value="030123456789"/> + </telecom> + <telecom> + <system value="email"/> + <value value="mvz@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="0c7f7e79-1110-4f82-ac22-5850eb1e1783"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="999999900"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-748382202"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. med. Emma Schneider"/> + <family value="Schneider"/> + <given value="Emma"/> + <prefix value="Dr. med."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/input.xml new file mode 100644 index 00000000..13d36b8d --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/input.xml @@ -0,0 +1,425 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="5f66314e-459a-41e9-a3d7-65c935a8be2c"/> + <meta> + <lastUpdated value="2022-05-20T08:30:00Z"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </identifier> + <type value="document"/> + <timestamp value="2022-05-20T08:30:00Z"/> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Composition/d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d8c9c61e-49a4-4af8-a6dc-20afbecff2ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <date value="2022-05-20T08:00:00Z"/> + <author> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="Y/400/2107/36/999"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <!-- Referenz auf Verordnung (MedicationRequest) --> + <reference value="MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <!-- Referenz auf Krankenkasse/Kostenträger --> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/MedicationRequest/a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="a3420913-2b33-4f66-b3df-85f1b06bb226"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="1"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident"> + <extension url="Unfallkennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type"/> + <code value="2"/> + </valueCoding> + </extension> + <extension url="Unfalltag"> + <valueDate value="2021-04-01"/> + </extension> + <extension url="Unfallbetrieb"> + <valueString value="Arbeitsplatz"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + </medicationReference> + <subject> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </subject> + <authoredOn value="2022-05-20"/> + <requester> + <reference value="Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + </requester> + <insurance> + <reference value="Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + </insurance> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Medication/cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="cee366e1-2177-4aa2-bf90-b74dc3c3474f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="S040464113"/> + </identifier> + <name> + <use value="official"/> + <family value="Graf Freiherr von Schaumberg"> + <extension url="http://fhir.de/StructureDefinition/humanname-namenszusatz"> + <valueString value="Graf Freiherr"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> + <valueString value="von"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schaumberg"/> + </extension> + </family> + <given value="Karl-Friederich"/> + <prefix value="Prof. Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <birthDate value="1964-04-04"/> + <address> + <type value="both"/> + <line value="Siegburger Str. 155"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="155"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Siegburger Str."/> + </extension> + </line> + <city value="Köln"/> + <postalCode value="51105"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Practitioner/d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d6f3b55d-3095-4655-96dc-da3bec21271c"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <name> + <use value="official"/> + <family value="Schulz"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Schulz"/> + </extension> + </family> + <given value="Ben"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Facharzt für Allgemeinmedizin"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Organization/2a555cd3-0543-483c-88b3-f68647620962"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="2a555cd3-0543-483c-88b3-f68647620962"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="http://pvs.praxis.local/fhir/Coverage/debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="debfa2b7-6636-4c6b-9a31-93ca3efde01b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Payor_Type_KBV"/> + <code value="UK"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/fc0d145b-09b4-4af6-b477-935c1862ac7f"/> + </beneficiary> + <payor> + <identifier> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Alternative_IK"> + <valueIdentifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="120591802"/> + </valueIdentifier> + </extension> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104212059"/> + </identifier> + <display value="Unfallkasse NRW"/> + </payor> + </Coverage> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/output.json new file mode 100644 index 00000000..bbaefe41 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/output.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Parameters", + "id": "cd2e731a-2aa1-4fd9-b10d-d387f583fed2", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.100.000.000.008.18" + } + }, { + "name": "authoredOn", + "valueDate": "2022-05-20" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "ff0c7287-a123-4479-bcbe-ce952a3d4667", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/598e3618-5958-4ca8-8729-109d080dc586" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2022-05-20", + "note": [ { + "text": "Verwendung ohne Anlegen eines Verbandes" + } ], + "dosageInstruction": [ { + "text": "3mal täglich dünn auftragen" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "598e3618-5958-4ca8-8729-109d080dc586", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "02090906" + } ], + "text": "Fucidine® 20mg/g Creme 15g N1" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "CRE" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "15" + } ], + "unit": "g", + "system": "http://unitsofmeasure.org", + "code": "g" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "f648fb24-9cf9-4c7a-a4b6-70b20870de92", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "724444400" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis", + "telecom": [ { + "system": "phone", + "value": "030321654987" + }, { + "system": "email", + "value": "hausarztpraxis@e-mail.de" + } ], + "address": [ { + "type": "both", + "line": [ "Herbert-Lewin-Platz 2", "Erdgeschoss" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Herbert-Lewin-Platz" + } ] + }, { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator", + "valueString": "Erdgeschoss" + } ] + } ], + "city": "Berlin", + "postalCode": "10623", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "2a4ea6b7-3b61-4542-8ffb-53fec0f64d2c", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "754236701" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Ben Schulz", + "family": "Schulz", + "given": [ "Ben" ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/output.xml new file mode 100644 index 00000000..bd6704a2 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/Beispiel_4_cd2e731a/output.xml @@ -0,0 +1,223 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="cd2e731a-2aa1-4fd9-b10d-d387f583fed2"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.100.000.000.008.18"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2022-05-20"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ff0c7287-a123-4479-bcbe-ce952a3d4667"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/598e3618-5958-4ca8-8729-109d080dc586"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2022-05-20"/> + <note> + <text value="Verwendung ohne Anlegen eines Verbandes"/> + </note> + <dosageInstruction> + <text value="3mal täglich dünn auftragen"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="598e3618-5958-4ca8-8729-109d080dc586"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="02090906"/> + </coding> + <text value="Fucidine® 20mg/g Creme 15g N1"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="CRE"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="15"/> + </extension> + <unit value="g"/> + <system value="http://unitsofmeasure.org"/> + <code value="g"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="f648fb24-9cf9-4c7a-a4b6-70b20870de92"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="724444400"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis"/> + <telecom> + <system value="phone"/> + <value value="030321654987"/> + </telecom> + <telecom> + <system value="email"/> + <value value="hausarztpraxis@e-mail.de"/> + </telecom> + <address> + <type value="both"/> + <line value="Herbert-Lewin-Platz 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Herbert-Lewin-Platz"/> + </extension> + </line> + <line value="Erdgeschoss"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator"> + <valueString value="Erdgeschoss"/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="2a4ea6b7-3b61-4542-8ffb-53fec0f64d2c"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="754236701"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Ben Schulz"/> + <family value="Schulz"/> + <given value="Ben"/> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/input.xml new file mode 100644 index 00000000..09afca96 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/input.xml @@ -0,0 +1,381 @@ +<Bundle xmlns="http://hl7.org/fhir"> + <id value="dac55c3e-43cc-4109-ac4c-d6af9f83e868"/> + <meta> + <lastUpdated value="2024-02-08T19:06:25.492+01:00"/> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle|1.1.0"/> + </meta> + <identifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.770.62"/> + </identifier> + <type value="document"/> + <timestamp value="2024-02-08T19:06:25.492+01:00"/> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Composition/d9670396-7497-4ebd-9e0e-165d1f63c497"/> + <resource> + <Composition xmlns="http://hl7.org/fhir"> + <id value="d9670396-7497-4ebd-9e0e-165d1f63c497"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN"/> + <code value="00"/> + </valueCoding> + </extension> + <status value="final"/> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> + <code value="e16A"/> + </coding> + </type> + <subject> + <reference value="Patient/cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + </subject> + <date value="2024-02-08T19:06:25+01:00"/> + <author> + <reference value="Practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <type value="Practitioner"/> + </author> + <author> + <type value="Device"/> + <identifier> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> + <value value="GEMATIK/410/2109/36/123"/> + </identifier> + </author> + <title value="elektronische Arzneimittelverordnung"/> + <custodian> + <reference value="Organization/9a1b2729-f4bf-43b2-aff7-05cb692790dc"/> + </custodian> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Coverage"/> + </coding> + </code> + <entry> + <reference value="Coverage/c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + </entry> + </section> + <section> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> + <code value="Prescription"/> + </coding> + </code> + <entry> + <reference value="MedicationRequest/620d75ec-ec4c-418a-a0d7-7cbde942be17"/> + </entry> + </section> + </Composition> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Medication/3bf80c02-5578-44dc-ad8e-c2f92cd581ba"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="3bf80c02-5578-44dc-ad8e-c2f92cd581ba"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="61252891"/> + </coding> + <text value="Gemvomilsäure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Patient/cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + <resource> + <Patient xmlns="http://hl7.org/fhir"> + <id value="cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="X110498565"/> + </identifier> + <name> + <use value="official"/> + <family value="Hüllmann"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Hüllmann"/> + </extension> + </family> + <given value="Sina"/> + </name> + <birthDate value="1982-01-05"/> + <address> + <type value="both"/> + <line value="Knochenbergsweg 98c"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="98c"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Knochenbergsweg"/> + </extension> + </line> + <city value="Rahngrün"/> + <postalCode value="79738"/> + <country value="D"/> + </address> + </Patient> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Organization/9a1b2729-f4bf-43b2-aff7-05cb692790dc"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="9a1b2729-f4bf-43b2-aff7-05cb692790dc"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614137063"/> + </identifier> + <name value="Arztpraxis Arzt"/> + <telecom> + <system value="phone"/> + <value value="+49-073-0437663"/> + </telecom> + <telecom> + <system value="email"/> + <value value="teresa.roggatz@evers.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Burgweg 88"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="88"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Burgweg"/> + </extension> + </line> + <city value="Jonland"/> + <postalCode value="15501"/> + <country value="D"/> + </address> + </Organization> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Coverage/c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + <resource> + <Coverage xmlns="http://hl7.org/fhir"> + <id value="c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0"/> + </meta> + <extension url="http://fhir.de/StructureDefinition/gkv/besondere-personengruppe"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONENGRUPPE"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/dmp-kennzeichen"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/wop"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP"/> + <code value="38"/> + </valueCoding> + </extension> + <extension url="http://fhir.de/StructureDefinition/gkv/versichertenart"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS"/> + <code value="1"/> + </valueCoding> + </extension> + <status value="active"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/versicherungsart-de-basis"/> + <code value="GKV"/> + </coding> + </type> + <beneficiary> + <reference value="Patient/c58da998-79a6-4a4b-afd3-4834bde2be4f"/> + </beneficiary> + <payor> + <identifier> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="104424830"/> + </identifier> + <display value="BKK GRILLO‐WERKE AG"/> + </payor> + </Coverage> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/Practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="176464353"/> + </identifier> + <name> + <use value="official"/> + <family value="Arzt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Arzt"/> + </extension> + </family> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> + </Practitioner> + </resource> + </entry> + <entry> + <fullUrl value="https://pvs.gematik.de/fhir/MedicationRequest/620d75ec-ec4c-418a-a0d7-7cbde942be17"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="620d75ec-ec4c-418a-a0d7-7cbde942be17"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="2"/> + </valueCoding> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/3bf80c02-5578-44dc-ad8e-c2f92cd581ba"/> + </medicationReference> + <subject> + <reference value="Patient/cad719d6-c62f-4f2b-9a31-f75b4896a3d7"/> + </subject> + <authoredOn value="2024-02-08"/> + <requester> + <reference value="Practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + </requester> + <insurance> + <reference value="Coverage/c97b9bb1-b877-4835-b6b3-af3156d833a8"/> + </insurance> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </entry> +</Bundle> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/output.json new file mode 100644 index 00000000..9493bdf3 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/output.json @@ -0,0 +1,212 @@ +{ + "resourceType": "Parameters", + "id": "816f5003-c342-469e-a64f-01e223524bf6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters" ] + }, + "parameter": [ { + "name": "rxPrescription", + "part": [ { + "name": "prescriptionId", + "valueIdentifier": { + "system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId", + "value": "160.000.226.119.770.62" + } + }, { + "name": "authoredOn", + "valueDate": "2024-02-08" + }, { + "name": "medicationRequest", + "resource": { + "resourceType": "MedicationRequest", + "id": "3573b273-a2e9-4ac6-a3c8-ab895ef75032", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/b0faa733-6a1a-4942-9f2a-d169057ee4e6" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2024-02-08", + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": false + } + } + }, { + "name": "medication", + "resource": { + "resourceType": "Medication", + "id": "b0faa733-6a1a-4942-9f2a-d169057ee4e6", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "00" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "NB" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "61252891" + } ], + "text": "Gemvomilsäure" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "TAB" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "1" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + } + } + }, { + "name": "organization", + "resource": { + "resourceType": "Organization", + "id": "0a6b6e2c-3bac-4e16-88c1-a6ccd7eb5bd5", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "614137063" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Arztpraxis Arzt", + "telecom": [ { + "system": "phone", + "value": "+49-073-0437663" + }, { + "system": "email", + "value": "teresa.roggatz@evers.name" + } ], + "address": [ { + "type": "both", + "line": [ "Burgweg 88" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "88" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Burgweg" + } ] + } ], + "city": "Jonland", + "postalCode": "15501", + "country": "D" + } ] + } + }, { + "name": "practitioner", + "resource": { + "resourceType": "Practitioner", + "id": "d07578ee-14c7-4ff4-8c27-2f9e2f162e0a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "176464353" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Kein Arzt", + "family": "Arzt", + "given": [ "Kein" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] + } + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/output.xml new file mode 100644 index 00000000..d95feb26 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/dac55c3e-43cc-4109-ac4c-d6af9f83e868_816f5003/output.xml @@ -0,0 +1,215 @@ +<Parameters xmlns="http://hl7.org/fhir"> + <id value="816f5003-c342-469e-a64f-01e223524bf6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-provide-prescription-erp-input-parameters"/> + </meta> + <parameter> + <name value="rxPrescription"/> + <part> + <name value="prescriptionId"/> + <valueIdentifier> + <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/> + <value value="160.000.226.119.770.62"/> + </valueIdentifier> + </part> + <part> + <name value="authoredOn"/> + <valueDate value="2024-02-08"/> + </part> + <part> + <name value="medicationRequest"/> + <resource> + <MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="3573b273-a2e9-4ac6-a3c8-ab895ef75032"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/b0faa733-6a1a-4942-9f2a-d169057ee4e6"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2024-02-08"/> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="false"/> + </substitution> + </MedicationRequest> + </resource> + </part> + <part> + <name value="medication"/> + <resource> + <Medication xmlns="http://hl7.org/fhir"> + <id value="b0faa733-6a1a-4942-9f2a-d169057ee4e6"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="00"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="NB"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="61252891"/> + </coding> + <text value="Gemvomilsäure"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="TAB"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="1"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + </Medication> + </resource> + </part> + <part> + <name value="organization"/> + <resource> + <Organization xmlns="http://hl7.org/fhir"> + <id value="0a6b6e2c-3bac-4e16-88c1-a6ccd7eb5bd5"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="614137063"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Arztpraxis Arzt"/> + <telecom> + <system value="phone"/> + <value value="+49-073-0437663"/> + </telecom> + <telecom> + <system value="email"/> + <value value="teresa.roggatz@evers.name"/> + </telecom> + <address> + <type value="both"/> + <line value="Burgweg 88"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="88"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Burgweg"/> + </extension> + </line> + <city value="Jonland"/> + <postalCode value="15501"/> + <country value="D"/> + </address> + </Organization> + </resource> + </part> + <part> + <name value="practitioner"/> + <resource> + <Practitioner xmlns="http://hl7.org/fhir"> + <id value="d07578ee-14c7-4ff4-8c27-2f9e2f162e0a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="176464353"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Kein Arzt"/> + <family value="Arzt"/> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + </Practitioner> + </resource> + </part> + </parameter> +</Parameters> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/input.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/input.xml new file mode 100644 index 00000000..7d393b3f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/input.xml @@ -0,0 +1,56 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="fb0699b9-121e-41d1-826e-a4a0072ad0b4"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type"> + <valueCodeableConcept> + <coding> + <system value="http://snomed.info/sct"/> + <version value="http://snomed.info/sct/900000000000207008/version/20220331"/> + <code value="763158003"/> + <display value="Medicinal product (product)"/> + </coding> + </valueCodeableConcept> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04100230"/> + </coding> + <text value="IBUFLAM akut"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"> + <valueString value="10"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="8520897878"/> + <expirationDate value="2024-02-21T10:05:01+01:00"/> + </batch> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/log.txt b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/output.json b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/output.json new file mode 100644 index 00000000..639e68f4 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/output.json @@ -0,0 +1,49 @@ +{ + "resourceType": "Medication", + "id": "74cc0c8f-d767-4454-8d85-c3039c9f266d", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension", + "valueCoding": { + "system": "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs", + "code": "01" + } + }, { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension", + "valueBoolean": false + }, { + "url": "http://fhir.de/StructureDefinition/normgroesse", + "valueCode": "N1" + } ], + "code": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/ifa/pzn", + "code": "04100230" + } ], + "text": "IBUFLAM akut" + }, + "form": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM", + "code": "FTA" + } ] + }, + "amount": { + "numerator": { + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension", + "valueString": "10" + } ], + "unit": "Stk" + }, + "denominator": { + "value": 1 + } + }, + "batch": { + "lotNumber": "8520897878", + "expirationDate": "2024-02-21T10:05:01+01:00" + } +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/output.xml b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/output.xml new file mode 100644 index 00000000..0d7f15ef --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/medicationPzn/fb0699b9-121e-41d1-826e-a4a0072ad0b4_74cc0c8f/output.xml @@ -0,0 +1,46 @@ +<Medication xmlns="http://hl7.org/fhir"> + <id value="74cc0c8f-d767-4454-8d85-c3039c9f266d"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension"> + <valueCoding> + <system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/> + <code value="01"/> + </valueCoding> + </extension> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension"> + <valueBoolean value="false"/> + </extension> + <extension url="http://fhir.de/StructureDefinition/normgroesse"> + <valueCode value="N1"/> + </extension> + <code> + <coding> + <system value="http://fhir.de/CodeSystem/ifa/pzn"/> + <code value="04100230"/> + </coding> + <text value="IBUFLAM akut"/> + </code> + <form> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/> + <code value="FTA"/> + </coding> + </form> + <amount> + <numerator> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension"> + <valueString value="10"/> + </extension> + <unit value="Stk"/> + </numerator> + <denominator> + <value value="1"/> + </denominator> + </amount> + <batch> + <lotNumber value="8520897878"/> + <expirationDate value="2024-02-21T10:05:01+01:00"/> + </batch> +</Medication> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/input.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/input.xml new file mode 100644 index 00000000..5c7de823 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/input.xml @@ -0,0 +1,76 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="KZVA"/> + </coding> + </type> + <system value="http://fhir.de/sid/kzbv/kzvabrechnungsnummer"/> + <value value="036004328"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="XX"/> + </coding> + </type> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="825868088"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/log.txt b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/log.txt new file mode 100644 index 00000000..ba74cde3 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=4,row=49,locationString=Organization.identifier[4],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory|0.11.8,severity=information,sliceMessages=[Organization.identifier[4]: Does not match slice 'TelematikID' (discriminator: ('https://gematik.de/fhir/sid/telematik-id' in system)), Organization.identifier[4]: Does not match slice 'BSNR' (discriminator: ('https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR' in system)), Organization.identifier[4]: Does not match slice 'KZVA' (discriminator: ('http://fhir.de/sid/kzbv/kzvabrechnungsnummer' in system)), Organization.identifier[4]: Does not match slice 'IKNR' (discriminator: ('http://fhir.de/sid/arge-ik/iknr' in system))]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/output.json b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/output.json new file mode 100644 index 00000000..fe7b643e --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/output.json @@ -0,0 +1,85 @@ +{ + "resourceType": "Organization", + "id": "1e5b49db-8cfa-40de-9394-14fc0d0cefdc", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "031234567" + }, { + "use": "official", + "type": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/identifier-type-de-basis", + "code": "KZVA" + } ] + }, + "system": "http://fhir.de/sid/kzbv/kzvabrechnungsnummer", + "value": "036004328" + }, { + "use": "official", + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "XX" + } ] + }, + "system": "http://fhir.de/sid/arge-ik/iknr", + "value": "825868088" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + }, { + "type": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type", + "code": "KSN" + } ] + }, + "system": "http://fhir.de/sid/dkgev/standortnummer", + "value": "123456" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis Dr. Topp-Glücklich", + "telecom": [ { + "system": "phone", + "value": "0301234567" + } ], + "address": [ { + "type": "both", + "line": [ "Musterstr. 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Musterstr." + } ] + } ], + "city": "Berlin", + "postalCode": "10623" + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/output.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/output.xml new file mode 100644 index 00000000..d8e9638c --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e3b_1e5b49db/output.xml @@ -0,0 +1,86 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="1e5b49db-8cfa-40de-9394-14fc0d0cefdc"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="KZVA"/> + </coding> + </type> + <system value="http://fhir.de/sid/kzbv/kzvabrechnungsnummer"/> + <value value="036004328"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="XX"/> + </coding> + </type> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="825868088"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/input.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/input.xml new file mode 100644 index 00000000..936d941d --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/input.xml @@ -0,0 +1,65 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="cf042e44-086a-4d51-9c77-172f9a972e4b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="XX"/> + </coding> + </type> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="825868088"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/log.txt b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/log.txt new file mode 100644 index 00000000..ec11a793 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=4,row=39,locationString=Organization.identifier[3],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory|0.11.8,severity=information,sliceMessages=[Organization.identifier[3]: Does not match slice 'TelematikID' (discriminator: ('https://gematik.de/fhir/sid/telematik-id' in system)), Organization.identifier[3]: Does not match slice 'BSNR' (discriminator: ('https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR' in system)), Organization.identifier[3]: Does not match slice 'KZVA' (discriminator: ('http://fhir.de/sid/kzbv/kzvabrechnungsnummer' in system)), Organization.identifier[3]: Does not match slice 'IKNR' (discriminator: ('http://fhir.de/sid/arge-ik/iknr' in system))]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/output.json b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/output.json new file mode 100644 index 00000000..3307fc9d --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/output.json @@ -0,0 +1,75 @@ +{ + "resourceType": "Organization", + "id": "1e01a973-a5ae-4304-90c8-f03d95c4444f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "BSNR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR", + "value": "031234567" + }, { + "use": "official", + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "XX" + } ] + }, + "system": "http://fhir.de/sid/arge-ik/iknr", + "value": "825868088" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + }, { + "type": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type", + "code": "KSN" + } ] + }, + "system": "http://fhir.de/sid/dkgev/standortnummer", + "value": "123456" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis Dr. Topp-Glücklich", + "telecom": [ { + "system": "phone", + "value": "0301234567" + } ], + "address": [ { + "type": "both", + "line": [ "Musterstr. 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Musterstr." + } ] + } ], + "city": "Berlin", + "postalCode": "10623" + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/output.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/output.xml new file mode 100644 index 00000000..f99b4920 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e4b_1e01a973/output.xml @@ -0,0 +1,75 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="1e01a973-a5ae-4304-90c8-f03d95c4444f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="BSNR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/> + <value value="031234567"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="XX"/> + </coding> + </type> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="825868088"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/input.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/input.xml new file mode 100644 index 00000000..83aea51b --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/input.xml @@ -0,0 +1,66 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="KZVA"/> + </coding> + </type> + <system value="http://fhir.de/sid/kzbv/kzvabrechnungsnummer"/> + <value value="036004328"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="XX"/> + </coding> + </type> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="825868088"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/log.txt b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/log.txt new file mode 100644 index 00000000..8137f1f2 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=4,row=40,locationString=Organization.identifier[3],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory|0.11.8,severity=information,sliceMessages=[Organization.identifier[3]: Does not match slice 'TelematikID' (discriminator: ('https://gematik.de/fhir/sid/telematik-id' in system)), Organization.identifier[3]: Does not match slice 'BSNR' (discriminator: ('https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR' in system)), Organization.identifier[3]: Does not match slice 'KZVA' (discriminator: ('http://fhir.de/sid/kzbv/kzvabrechnungsnummer' in system)), Organization.identifier[3]: Does not match slice 'IKNR' (discriminator: ('http://fhir.de/sid/arge-ik/iknr' in system))]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/output.json b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/output.json new file mode 100644 index 00000000..99e9a479 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/output.json @@ -0,0 +1,76 @@ +{ + "resourceType": "Organization", + "id": "d618a383-4639-4e3c-b48a-a21c27aea420", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "use": "official", + "type": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/identifier-type-de-basis", + "code": "KZVA" + } ] + }, + "system": "http://fhir.de/sid/kzbv/kzvabrechnungsnummer", + "value": "036004328" + }, { + "use": "official", + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "XX" + } ] + }, + "system": "http://fhir.de/sid/arge-ik/iknr", + "value": "825868088" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + }, { + "type": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type", + "code": "KSN" + } ] + }, + "system": "http://fhir.de/sid/dkgev/standortnummer", + "value": "123456" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis Dr. Topp-Glücklich", + "telecom": [ { + "system": "phone", + "value": "0301234567" + } ], + "address": [ { + "type": "both", + "line": [ "Musterstr. 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Musterstr." + } ] + } ], + "city": "Berlin", + "postalCode": "10623" + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/output.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/output.xml new file mode 100644 index 00000000..acab8adc --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e5b_d618a383/output.xml @@ -0,0 +1,76 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="d618a383-4639-4e3c-b48a-a21c27aea420"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="KZVA"/> + </coding> + </type> + <system value="http://fhir.de/sid/kzbv/kzvabrechnungsnummer"/> + <value value="036004328"/> + </identifier> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="XX"/> + </coding> + </type> + <system value="http://fhir.de/sid/arge-ik/iknr"/> + <value value="825868088"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/input.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/input.xml new file mode 100644 index 00000000..a14fef65 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/input.xml @@ -0,0 +1,44 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="cf042e44-086a-4d51-9c77-172f9a972e3b"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/log.txt b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/log.txt new file mode 100644 index 00000000..8736fe77 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/log.txt @@ -0,0 +1,3 @@ +Fhir Validation result: valid + +SingleValidationMessage[col=4,row=20,locationString=Organization.identifier[1],message=This element does not match any known slice defined in the profile https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory|0.11.8,severity=information,sliceMessages=[Organization.identifier[1]: Does not match slice 'TelematikID' (discriminator: ('https://gematik.de/fhir/sid/telematik-id' in system)), Organization.identifier[1]: Does not match slice 'BSNR' (discriminator: ('https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR' in system)), Organization.identifier[1]: Does not match slice 'KZVA' (discriminator: ('http://fhir.de/sid/kzbv/kzvabrechnungsnummer' in system)), Organization.identifier[1]: Does not match slice 'IKNR' (discriminator: ('http://fhir.de/sid/arge-ik/iknr' in system))]] diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/output.json b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/output.json new file mode 100644 index 00000000..2d3bcb92 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/output.json @@ -0,0 +1,56 @@ +{ + "resourceType": "Organization", + "id": "4a939ea9-a628-44c9-9752-70c51bf45dfd", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + }, { + "type": { + "coding": [ { + "system": "https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type", + "code": "KSN" + } ] + }, + "system": "http://fhir.de/sid/dkgev/standortnummer", + "value": "123456" + } ], + "type": [ { + "coding": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID", + "code": "1.2.276.0.76.4.58" + } ] + } ], + "name": "Hausarztpraxis Dr. Topp-Glücklich", + "telecom": [ { + "system": "phone", + "value": "0301234567" + } ], + "address": [ { + "type": "both", + "line": [ "Musterstr. 2" ], + "_line": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber", + "valueString": "2" + }, { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName", + "valueString": "Musterstr." + } ] + } ], + "city": "Berlin", + "postalCode": "10623" + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/output.xml b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/output.xml new file mode 100644 index 00000000..a34b0064 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/organization/cf042e44-086a-4d51-9c77-172f9a972e6b_4a939ea9/output.xml @@ -0,0 +1,54 @@ +<Organization xmlns="http://hl7.org/fhir"> + <id value="4a939ea9-a628-44c9-9752-70c51bf45dfd"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <identifier> + <type> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_Base_identifier_type"/> + <code value="KSN"/> + </coding> + </type> + <system value="http://fhir.de/sid/dkgev/standortnummer"/> + <value value="123456"/> + </identifier> + <type> + <coding> + <system value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/> + <code value="1.2.276.0.76.4.58"/> + </coding> + </type> + <name value="Hausarztpraxis Dr. Topp-Glücklich"/> + <telecom> + <system value="phone"/> + <value value="0301234567"/> + </telecom> + <address> + <type value="both"/> + <line value="Musterstr. 2"> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> + <valueString value="2"/> + </extension> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> + <valueString value="Musterstr."/> + </extension> + </line> + <city value="Berlin"/> + <postalCode value="10623"/> + </address> +</Organization> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/input.xml b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/input.xml new file mode 100644 index 00000000..8dcf2be6 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/input.xml @@ -0,0 +1,58 @@ +<Practitioner xmlns="http://hl7.org/fhir"> + <id value="4a048d7d-e9de-4393-ac4f-beb6b930027a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="176464353"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <family value="Arzt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Arzt"/> + </extension> + </family> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + <suffix value="abc"/> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> +</Practitioner> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/log.txt b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/output.json b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/output.json new file mode 100644 index 00000000..a678a730 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/output.json @@ -0,0 +1,44 @@ +{ + "resourceType": "Practitioner", + "id": "6b3963af-e254-4a7c-963c-422a71f1793a", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "LANR" + } ] + }, + "system": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR", + "value": "176464353" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Kein Arzt abc", + "family": "Arzt", + "given": [ "Kein" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ], + "suffix": [ "abc" ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/output.xml b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/output.xml new file mode 100644 index 00000000..81677c66 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930027a_6b3963af/output.xml @@ -0,0 +1,42 @@ +<Practitioner xmlns="http://hl7.org/fhir"> + <id value="6b3963af-e254-4a7c-963c-422a71f1793a"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="LANR"/> + </coding> + </type> + <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/> + <value value="176464353"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Kein Arzt abc"/> + <family value="Arzt"/> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + <suffix value="abc"/> + </name> +</Practitioner> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/input.xml b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/input.xml new file mode 100644 index 00000000..4bfd9e38 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/input.xml @@ -0,0 +1,58 @@ +<Practitioner xmlns="http://hl7.org/fhir"> + <id value="4a048d7d-e9de-4393-ac4f-beb6b930127a"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0"/> + </meta> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="ZANR"/> + </coding> + </type> + <system value="http://fhir.de/sid/kzbv/zahnarztnummer"/> + <value value="585313091"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <family value="Arzt"> + <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> + <valueString value="Arzt"/> + </extension> + </family> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type"/> + <code value="00"/> + </coding> + </code> + </qualification> + <qualification> + <code> + <coding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung"/> + <code value="Berufsbezeichnung"/> + </coding> + <text value="Super-Facharzt für alles Mögliche"/> + </code> + </qualification> +</Practitioner> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/log.txt b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/output.json b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/output.json new file mode 100644 index 00000000..46a34fc6 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/output.json @@ -0,0 +1,44 @@ +{ + "resourceType": "Practitioner", + "id": "382caeef-4a0e-4723-8d83-10f9a253609f", + "meta": { + "profile": [ "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory" ], + "tag": [ { + "system": "https://gematik.de/fhir/directory/CodeSystem/Origin", + "code": "ldap" + } ] + }, + "identifier": [ { + "use": "official", + "type": { + "coding": [ { + "system": "http://fhir.de/CodeSystem/identifier-type-de-basis", + "code": "ZANR" + } ] + }, + "system": "http://fhir.de/sid/kzbv/zahnarztnummer", + "value": "585313091" + }, { + "type": { + "coding": [ { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PRN" + } ] + }, + "system": "https://gematik.de/fhir/sid/telematik-id", + "value": "1-031234567" + } ], + "name": [ { + "use": "official", + "text": "Dr. Kein Arzt", + "family": "Arzt", + "given": [ "Kein" ], + "prefix": [ "Dr." ], + "_prefix": [ { + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier", + "valueCode": "AC" + } ] + } ] + } ] +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/output.xml b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/output.xml new file mode 100644 index 00000000..983dd573 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/practitioner/4a048d7d-e9de-4393-ac4f-beb6b930127a_382caeef/output.xml @@ -0,0 +1,42 @@ +<Practitioner xmlns="http://hl7.org/fhir"> + <id value="382caeef-4a0e-4723-8d83-10f9a253609f"/> + <meta> + <profile value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/> + <tag> + <system value="https://gematik.de/fhir/directory/CodeSystem/Origin"/> + <code value="ldap"/> + </tag> + </meta> + <identifier> + <use value="official"/> + <type> + <coding> + <system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> + <code value="ZANR"/> + </coding> + </type> + <system value="http://fhir.de/sid/kzbv/zahnarztnummer"/> + <value value="585313091"/> + </identifier> + <identifier> + <type> + <coding> + <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> + <code value="PRN"/> + </coding> + </type> + <system value="https://gematik.de/fhir/sid/telematik-id"/> + <value value="1-031234567"/> + </identifier> + <name> + <use value="official"/> + <text value="Dr. Kein Arzt"/> + <family value="Arzt"/> + <given value="Kein"/> + <prefix value="Dr."> + <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> + <valueCode value="AC"/> + </extension> + </prefix> + </name> +</Practitioner> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/input.xml b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/input.xml new file mode 100644 index 00000000..7eb8531d --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/input.xml @@ -0,0 +1,54 @@ +<MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="c0312f32-4f6c-49b3-b3f4-21506785d583"/> + <meta> + <profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0"/> + </meta> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment"> + <valueCoding> + <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_StatusCoPayment"/> + <code value="0"/> + </valueCoding> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG"> + <valueBoolean value="false"/> + </extension> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription"> + <extension url="Kennzeichen"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="urn:uuid:d26d162c-59b6-465d-a8e1-91b570461e8f"/> + </medicationReference> + <subject> + <reference value="urn:uuid:e5cd146d-fcfd-4614-9b61-87ce84d71b47"/> + </subject> + <authoredOn value="2023-07-11"/> + <requester> + <reference value="urn:uuid:604f930b-395d-4247-b901-6698ce29d6f0"/> + </requester> + <insurance> + <reference value="urn:uuid:a02eafd7-7ede-4ade-b518-bc7fbc1be414"/> + </insurance> + <dosageInstruction> + <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag"> + <valueBoolean value="true"/> + </extension> + <text value="1-1-1-1"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> +</MedicationRequest> \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/log.txt b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/log.txt new file mode 100644 index 00000000..a7d0a24f --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/log.txt @@ -0,0 +1,2 @@ +Fhir Validation result: valid + diff --git a/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/output.json b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/output.json new file mode 100644 index 00000000..002d9c47 --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/output.json @@ -0,0 +1,39 @@ +{ + "resourceType": "MedicationRequest", + "id": "ffaf6f74-3052-4632-ad64-5778accd41ca", + "meta": { + "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" ] + }, + "extension": [ { + "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension", + "extension": [ { + "url": "indicator", + "valueBoolean": false + } ] + } ], + "status": "active", + "intent": "order", + "medicationReference": { + "reference": "Medication/26d162c-59b6-465d-a8e1-91b570461e8f" + }, + "subject": { + "identifier": { + "system": "http://fhir.de/sid/gkv/kvid-10", + "value": "K220635158" + } + }, + "authoredOn": "2023-07-11", + "dosageInstruction": [ { + "text": "1-1-1-1" + } ], + "dispenseRequest": { + "quantity": { + "value": 1, + "system": "http://unitsofmeasure.org", + "code": "{Package}" + } + }, + "substitution": { + "allowedBoolean": true + } +} \ No newline at end of file diff --git a/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/output.xml b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/output.xml new file mode 100644 index 00000000..db5e5d1b --- /dev/null +++ b/ePA-eML-Examples/ExampleTestData/valid/unknown/c0312f32-4f6c-49b3-b3f4-21506785d583_ffaf6f74/output.xml @@ -0,0 +1,36 @@ +<MedicationRequest xmlns="http://hl7.org/fhir"> + <id value="ffaf6f74-3052-4632-ad64-5778accd41ca"/> + <meta> + <profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/> + </meta> + <extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"> + <extension url="indicator"> + <valueBoolean value="false"/> + </extension> + </extension> + <status value="active"/> + <intent value="order"/> + <medicationReference> + <reference value="Medication/26d162c-59b6-465d-a8e1-91b570461e8f"/> + </medicationReference> + <subject> + <identifier> + <system value="http://fhir.de/sid/gkv/kvid-10"/> + <value value="K220635158"/> + </identifier> + </subject> + <authoredOn value="2023-07-11"/> + <dosageInstruction> + <text value="1-1-1-1"/> + </dosageInstruction> + <dispenseRequest> + <quantity> + <value value="1"/> + <system value="http://unitsofmeasure.org"/> + <code value="{Package}"/> + </quantity> + </dispenseRequest> + <substitution> + <allowedBoolean value="true"/> + </substitution> +</MedicationRequest> \ No newline at end of file